You can send commands to a running screen like so:

screen -S myscreen -X eval 'stuff stats\015'

This would send "stats" followed by a return (\r) to the screen named 
"myscreen".  You'll see it on the console if you attach to myscreen 
afterward.  I don't know of a way to capture the output on a screen, though.

     - Dave

Joseph Laws wrote:
> I imagine that would still be logged.
> 
> Marcel wrote:
>> Is there a way to store the actual "screen" in a variable or text file?
>>
>> It would be cool to "send" a command like "stats" to the screen and get 
>> the output of it. Where the first "problem" would be to automatically 
>> attach to the screen, enter command, detach the screen and then get the 
>> content of the screen. This sould be done by a bash script.
>> This way you'd be able to generate nice mrtg graphs about fps etc. 
>> *without* the rcon password and without logging of the access.
>>
>>
>> - Marcel
>>
>> _______________________________________________
>> To unsubscribe, edit your list preferences, or view the list archives, 
>> please visit:
>> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
>>
>>   
> 
> 
> _______________________________________________
> To unsubscribe, edit your list preferences, or view the list archives, please 
> visit:
> http://list.valvesoftware.com/mailman/listinfo/hlds_linux
> 

-- 

Dave Parker
Utica College
Integrated Information Technology Services
(315) 792-3229
Registered Linux User #408177

_______________________________________________
To unsubscribe, edit your list preferences, or view the list archives, please 
visit:
http://list.valvesoftware.com/mailman/listinfo/hlds_linux

Reply via email to