GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   simple unix (freebsd) question.. (https://gfy.com/showthread.php?t=584019)

mrthumbs 03-07-2006 05:07 PM

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....

mrthumbs 03-07-2006 05:09 PM

Hmm am i correct that ./command &

does the job?

HorseShit 03-07-2006 05:09 PM

You want to run it in screen

example

screen <program-name>

if you don't have screen installed you will have to install it

prime 03-07-2006 07:25 PM

I use screen for that trick, get it installed and start rolling :thumbsup

com 03-07-2006 07:28 PM

Quote:

Originally Posted by prime
I use screen for that trick, get it installed and start rolling :thumbsup

ditto ....

toddler 03-07-2006 07:42 PM

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.

skinnay 03-07-2006 07:47 PM

nohup script &

pstation 03-07-2006 07:47 PM

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