Computing.Net > Forums > Linux > continuing jobs after logging out

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

continuing jobs after logging out

Reply to Message Icon

Name: jun
Date: August 24, 2003 at 23:23:15 Pacific
OS: red hat 9.0
CPU/Ram: 2.0G/1.0G
Comment:

I am a new bird in using linux and constantly met with problems easy or hard. So far I am faced with an embarrassing issue that when I log on to other computers to run jobs, I can not shut my computer down before the job is finished. That obviously should not be the case since it would cause so much convenience to the users. Please help me out if you know how to remove this problem. Thanks a lot,



Sponsored Link
Ads by Google

Response Number 1
Name: Don Arnett
Date: August 25, 2003 at 01:18:04 Pacific
Reply:

I don't do this very often but I'm pretty sure that you'd do two things:

- run the process in the background by putting a '&' after it when you start it, for example:

myjob &


- use the 'nohup' command when you start the process to tell it to keep running after you log out. 'nohup' means 'no hangup', which probably originated during 'dialup' days:

nohup myjob &


Give that a shot.


0

Response Number 2
Name: David Perry
Date: August 25, 2003 at 05:30:49 Pacific
Reply:

Also jobs that are not attached to a terminal session will continue. If you used at or cron to initiate a job not only would it continue after you disconnect but the system will mail you the output of the job.


0

Response Number 3
Name: 3Dave
Date: August 26, 2003 at 07:53:32 Pacific
Reply:

You may also want to look at "screen". It
can create a virtual console which you can
detatch from and reatatch to even after
logging out. eg:
$ screen setiathome
starts seti in a new screen session.
Then press Ctrl&A then D to detach from it.
You can now log off etc.
$ screen -ls
will list all sessions running with a PID
$ screen -r PID
will reattach you to it. You can even
reattach from another computer using
ssh/telnet etc.


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: continuing jobs after logging out

running processes while logged out? www.computing.net/answers/linux/running-processes-while-logged-out/12160.html

blank screen upon log-out X-windows www.computing.net/answers/linux/blank-screen-upon-logout-xwindows/11348.html

yahoo mail keeps logging out www.computing.net/answers/linux/yahoo-mail-keeps-logging-out/30045.html