andysimmons
03-11-2004, 03:19 AM
Hi Guys. I'm using 'screen' to run a Soldier of Fortune 2 server, and I need to send a line of text to the detatched screen. I've figured out how to send everything except the newline character.
screen -S screen_name -X stuff "Some string goes here"
If I run the above command, and re-attach screen_name, I'll see Some string goes here, with my cursor right after the word 'here'. I've tried throwing a '\n' in a few places, but that either doesn't change a thing, or adds a literal \n to the string.
I've read everything I can find, but haven't even found a suggestion yet. Obviously, Googling for "screen" and "stuff" has taken me all over the Internet, with little relevant information. Any help would be greatly appreciated.
screen -S screen_name -X stuff "Some string goes here"
If I run the above command, and re-attach screen_name, I'll see Some string goes here, with my cursor right after the word 'here'. I've tried throwing a '\n' in a few places, but that either doesn't change a thing, or adds a literal \n to the string.
I've read everything I can find, but haven't even found a suggestion yet. Obviously, Googling for "screen" and "stuff" has taken me all over the Internet, with little relevant information. Any help would be greatly appreciated.