hi,

i am using "screen" to launch another process, so that i can connect in and out of that process whenever its required.

however, i need to be able to send keystrokes to this from a bash script or cron. currently, i have scripted this to send a SIGTERM to the application which kills it:
screen -r -X quit

this isnt how you are supposed to end the process. you should press "Control Key" and "a" (this is used to get the application commands) then type the letter "q". can someone show me how to incorporate this? some have suggested using "escape" or "stuff" but nothing i have tried works!!!

please, please, please help...

jingo_man