Latest LQ Deal: Latest LQ Deals
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 12-14-2004, 09:24 AM   #1
LQ Newbie
Registered: Dec 2004
Location: London, UK
Distribution: Mandriva 2005 LE
Posts: 11

Rep: Reputation: 0
Question Keep task running after logout


I'm using my linux box over an SSH connection alot, and one thing i've never figured out is how to set a task running and then log out, but leave it running. (and of course how to get access to it again if i log in again.)

I tried command & but when I try to log out it says I still have stuff running.

Is there a way to easily do what I want? As an example... when connected using ssh how do I start tarring up all my files and then let the process continue in the background while i log back out?

Old 12-14-2004, 09:50 AM   #2
Senior Member
Registered: Nov 2004
Location: Third rock from the Sun
Distribution: NetBSD-2, FreeBSD-5.4, OpenBSD-3.[67], RHEL[34], OSX 10.4.1
Posts: 1,197

Rep: Reputation: 46
Have you looked at screen?

Screen is a full-screen window manager that multiplexes a physical terminal
between several processes (typically interactive shells).
Each virtual terminal provides the functions of a DEC VT100 terminal and, in
addition, several control functions from the ANSI X3.64 (ISO 6429) and ISO
2022 standards (e.g. insert/delete line and support for multiple character
sets). There is a scrollback history buffer for each virtual terminal and a
copy-and-paste mechanism that allows moving text regions between windows.

Screen isn't completely necessary as you can do background processes without it, but it's kind of handy to be able to detach from the terminal and come back to it later.
Old 12-14-2004, 09:52 AM   #3
LQ Newbie
Registered: Aug 2003
Location: St. Paul, Minnesota, US
Distribution: Slackware 10
Posts: 27

Rep: Reputation: 15
I don't know much about them, but you might want to look into the commands "nohup" and "screen".
Old 12-14-2004, 02:44 PM   #4
LQ Newbie
Registered: Dec 2004
Location: London, UK
Distribution: Mandriva 2005 LE
Posts: 11

Original Poster
Rep: Reputation: 0
Thanks, nohup seems to do what I want.


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
HELP: running process in bg and logout and persist... woes :S kevingpo Fedora 1 09-09-2005 01:10 AM
running in background hangs on shell logout pfaendtner Linux - Newbie 5 03-25-2005 10:34 AM
Keeping a process running after shell logout abboq Linux - Software 5 09-01-2004 05:58 PM
Strange problem: running XINE causes logout chem1 Linux - Software 3 03-25-2004 12:50 PM
Having trouble running a task in the background 2016 Linux - Newbie 1 01-27-2002 12:51 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:34 PM.

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