LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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.

Notices


Reply
  Search this Thread
Old 11-18-2006, 10:50 PM   #1
danran
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
gilead
Senior Member
 
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,141

Rep: Reputation: 168Reputation: 168
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
ygloo
Member
 
Registered: Aug 2006
Distribution: slack
Posts: 323

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

all disown does is to detach process from parent
 
  


Reply



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

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:28 PM.

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