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
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,
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.
Summary: Howdy, I was curious to know if its possible to run processes and continue to run them after logging out of the system? I would like to be able to telnet into my machine, run programs, then close my t...
Summary: OS: RedHat 7.3 Desktop: GNOME Hardware: P4-1.6G on Asus P4BLG-VM video: Intel 845GL graphic with shared video RAM X configuration: VESA 1024x768x16-bit Note: 845GL driver for Linux is nowhere to be fo...
Summary: I am not sure really what you mean but when I say it logs out it goes to a yahoo page for me to log back in even though I didn't log out. I am still on the net. Any other site that I have to log into ...