LinuxAnswers - the LQ Linux tutorial section.
Go Back > Forums > Linux Forums > Linux - General
User Name
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.


  Search this Thread
Old 11-18-2006, 10:50 PM   #1
LQ Newbie
Registered: Oct 2005
Location: San Francisco
Distribution: Debian 2.4.27-2-386
Posts: 17

Rep: Reputation: 0
running process in background forever

Hi, i'm ssh'ing into my box at home and i'd like to start a process that keeps on running even after I log out. I know I can do like a "top &" and that will run in the background, but when I exit the SSH session, it quits. How do I keep it running in the background, even when I log out?
Old 11-18-2006, 11:03 PM   #2
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,124

Rep: Reputation: 164Reputation: 164
Have a look at the nohup and screen commands (especially screen) - they're useful for exactly that sort of thing. With screen you can detach from the running instance of the program and re-attach later from a different location.
Old 11-19-2006, 09:44 AM   #3
Registered: Aug 2006
Distribution: slack
Posts: 323

Rep: Reputation: 30
"program &"
disown %1 (job number)

all disown does is to detach process from parent


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Running kismet as a background process coolnicklas Linux - Software 2 01-04-2006 03:33 PM
background process ust Linux - General 1 12-15-2005 11:35 PM
background running process elbriga Programming 2 09-21-2004 06:08 PM
how to run any binary in background - background process tej Linux - Newbie 1 08-16-2004 12:27 AM
starting a background process running tcpdump on boot butthead Linux - Networking 1 10-15-2003 06:34 PM

All times are GMT -5. The time now is 05:56 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration