Link to home
Start Free TrialLog in
Avatar of bionicblakey
bionicblakey

asked on

want to start my program in the background.

i know how to start a program..

i just ssh in and go to the that directory and type ./start.sh

however, i need this program to run in the background b/c
when i killed my telnet program, i want this program continue to run.

what should i do??
ASKER CERTIFIED SOLUTION
Avatar of jainrah
jainrah

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of yuzh
yuzh

You can use nohup to do the job, the syntax should be

nohup /path-to/program &

man nohup

Or use the "screen" program to do the job, have a look at the following page for more
details: (you can download screen for your version of OS)
http://www.gnu.org/software/screen/
addition to yuzh's answer:

you can use some extra strings when you backgrounded your program to not to fill your login window with error or output messages from the program that you are running:

nohup /path-to/program 2>/dev/null 1>/dev/null&

2 and 1 are meaning that pipe the output and error messages to /dev/null