Doomsword
September 12th, 2008, 02:32 AM
Hi, I need to launch an application (game "Call Of Duty 4" in server listening mode) on my ubuntu server machine at startup. I access to my box via SSH with putty from a win box.
I need that the task will stay active if I logoff from Linux... so I wrote a bash script to launch the task with "screen" task. Everything works fine... when the COD4 (Call of duty 4) is launched it stay in "Console mode" waiting for commands (ex. : mp_rotate change the current map, mp_restart restart the current map and so on...). What can I do to:
1) Start the task at startup with "Screen" and automatically detatch the process (without manually doing CTRL+A + D)
2) Reattach the task and launching QUIT command on waiting COD4 console when the system is shutting down or restarting
Is that possible? Any workaround or any other methods are well accepted! Thank you so much in advance!
Fabio
I need that the task will stay active if I logoff from Linux... so I wrote a bash script to launch the task with "screen" task. Everything works fine... when the COD4 (Call of duty 4) is launched it stay in "Console mode" waiting for commands (ex. : mp_rotate change the current map, mp_restart restart the current map and so on...). What can I do to:
1) Start the task at startup with "Screen" and automatically detatch the process (without manually doing CTRL+A + D)
2) Reattach the task and launching QUIT command on waiting COD4 console when the system is shutting down or restarting
Is that possible? Any workaround or any other methods are well accepted! Thank you so much in advance!
Fabio