LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 12-14-2004, 10:24 AM   #1
Xzanron
LQ Newbie
 
Registered: Dec 2004
Location: London, UK
Distribution: Mandriva 2005 LE
Posts: 11

Rep: Reputation: 0
Question Keep task running after logout




Hi

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?

Thanks
 
Old 12-14-2004, 10:50 AM   #2
sigsegv
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?

Quote:
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.

WWW: http://www.gnu.org/software/screen/
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, 10:52 AM   #3
lethargo
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, 03:44 PM   #4
Xzanron
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.
 
  


Reply


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 02:10 AM
running in background hangs on shell logout pfaendtner Linux - Newbie 5 03-25-2005 11:34 AM
Keeping a process running after shell logout abboq Linux - Software 5 09-01-2004 06:58 PM
Strange problem: running XINE causes logout chem1 Linux - Software 3 03-25-2004 01:50 PM
Having trouble running a task in the background 2016 Linux - Newbie 1 01-27-2002 01:51 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration