Re: write command-result to console
Andrew McGlashan <andrew.mcglashan-eCNwZfdMfp8leAitJ8REmSkBLnlaf3ui@public.gmane.org>
| Newsgroups | gmane.comp.gnu.screen.user |
|---|---|
| Organization | Affinity Vision Australia Pty Ltd |
| Message-ID | <[email protected]> |
Hi, Maximilian Kirchner wrote: > I want to use screen to keep track of my gameservers - for instance my minecraft server. > Now I want to send the command "list" (which lists all players) to the server and write the result in a file. > When I use "screen -p 0 -S minecraft-w1 -X eval 'stuff list\015'" the command is evaluated, but I can only see the result when returning to screen via "screen -r minecraft-w1". Is there any way to write the result to my shell or into a file? > The command "list" is not executed as an own command but just as a prompt within the minecraft-server, so I cannot just pipe the command-output into a file. I just replied a short time ago for a similar requirement -- the solution should work for you too! Cheers -- Kind Regards AndrewM Andrew McGlashan Broadband Solutions now including VoIP