Free SMS | Refinance | MPAA | Credit Card Consolidation | Auto Loans
Send a command to a detached screen session... [Archive] - PCMech Forums

PDA

View Full Version : Send a command to a detached screen session...


Xayd
10-27-2003, 04:37 PM
Possible?

I've got a game server that accepts console commands through its terminal. So, for users to be able to start and stop it easily, I run it in a detached screen session so they can start and stop it from Usermin on a web page.

Is it possible to send a string of text to a specific detached screen session without reattaching it?

The man page for screen states...


-X Send the specified command to a running screen session. You can use the -d or -r option to tell screen
to look only for attached or detached screen sessions. Note that this command doesn't work if the
session is password protected.

What's the syntax if it can be done? Or does this only apply to 'screen commands' and not text or other commands? The documentation above is all that's provided, it's a bit sketchy ;).