![]() |
simple unix (freebsd) question..
Im logged in as root with SSH.. i want to start a program or script to run in the background so that when i kill my SSH session it keeps running...
Shouldnt be a cronjob.. just something that doesnt terminate when i terminate my session.... |
Hmm am i correct that ./command &
does the job? |
You want to run it in screen
example screen <program-name> if you don't have screen installed you will have to install it |
I use screen for that trick, get it installed and start rolling :thumbsup
|
Quote:
|
Screen is the way to go. Easy as sin
screen some_cmd to detach from the screen, hit ctrl a then ctrl d to reattach to a screen screen -r you can have many screens going, you can screen shells, makes, etc etc. |
nohup script &
|
nohup <command_goes_here> & works too :)
nohup basicly causes the script to ingore all hangup signals, screen works awesome too as well but it's generally overkill for non-interactive scripts. |
All times are GMT -7. The time now is 09:47 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123