[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: write command-result to console

From: Geraint Edwards
Subject: Re: write command-result to console
Date: Thu, 21 Apr 2011 07:35:22 +0100
User-agent: Mutt/

Maximilian Kirchner <address@hidden> said
                (on Mon, Apr 18, 2011 at 11:35:41PM +0200):
> Now I want to send the command "list" (which lists all players) to the server 
> and write the result in a file.

Did you try:

        rm screenlog.0
        screen -p 0 -S minecraft-w1 -X log on
        screen -p 0 -S minecraft-w1 -X stuff 'list\012'
        sleep 2
        screen -p 0 -S minecraft-w1 -X log off
        more screenlog.0

Geraint A. Edwards (aka "Gedge")

reply via email to

[Prev in Thread] Current Thread [Next in Thread]