![]() |
![]() |
![]() |
||||
Welcome to the GoFuckYourself.com - Adult Webmaster Forum forums. You are currently viewing our boards as a guest which gives you limited access to view most discussions and access our other features. By joining our free community you will have access to post topics, communicate privately with other members (PM), respond to polls, upload content and access many other special features. Registration is fast, simple and absolutely free so please, join our community today! If you have any problems with the registration process or your account login, please contact us. |
![]() ![]() |
|
Discuss what's fucking going on, and which programs are best and worst. One-time "program" announcements from "established" webmasters are allowed. |
|
Thread Tools |
![]() |
#1 |
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
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.... |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#2 |
salad tossing sig guy
Join Date: Apr 2002
Location: mrthumbs*gmail.com
Posts: 11,702
|
Hmm am i correct that ./command &
does the job? |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#3 |
Too lazy to set a custom title
Join Date: Dec 2004
Posts: 17,513
|
You want to run it in screen
example screen <program-name> if you don't have screen installed you will have to install it |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#4 |
Confirmed User
Join Date: Feb 2005
Location: Manila
Posts: 400
|
I use screen for that trick, get it installed and start rolling
![]()
__________________
![]() | offshore solutions | manual labor | staff leasing | and more! Dedicated -Motivated-Managed Employees icq.: 309570461 live chat |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#5 | |
Confirmed User
Join Date: Aug 2003
Location: Portland, Oregon
Posts: 4,541
|
Quote:
__________________
Real. Professional. Hosting. .:Expect Nothing Less:. 320-078-843 :: www.realprohosting.com :: [email protected] |
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#6 |
Confirmed User
Join Date: Jun 2002
Location: austin, tx
Posts: 1,911
|
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.
__________________
http://www.flickr.com/photos/zoddler/ |
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#7 |
Confirmed User
Join Date: Apr 2004
Location: NEW YORK CITY
Posts: 2,274
|
nohup script &
|
![]() |
![]() ![]() ![]() ![]() ![]() |
![]() |
#8 |
Confirmed User
Join Date: Jul 2003
Location: chicago
Posts: 1,135
|
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. |
![]() |
![]() ![]() ![]() ![]() ![]() |