Thread View: comp.unix.ultrix
6 messages
6 total messages
Started by rsl11
Thu, 09 Sep 1993 21:38
suspend a progr.,logout,login&restart it again
Author: rsl11
Date: Thu, 09 Sep 1993 21:38
Date: Thu, 09 Sep 1993 21:38
29 lines
1975 bytes
1975 bytes
Hello there, I would like to do the following in UNIX and I am wondering whther this is is feasible. 1. I would like to run a program using the nohup command so that even if I logout the program can still be running. 2. Then I would like to suspend it so that the program won't be running. Note that I do not want the process to be killed. 3. Then I want to logout and when I log in again I would like to be able to restart the program, i.e. continue it from the point where it was before. The reason that I would like to do that is because I have a very time consumung program that takes about 3 days to run and I want to run whenever nobody else is logged on so that I won't be slowing down the other users. I have tried renicing the process but the program still slows down the users so I would klike to do what I have explained above. In other words, I want to run the program, suspend it, log out, login again, and restart it so that I can continue the program. I have tried suspending the job using ctrl-z and logged out but after I logged out the program was running. I would appreciate any relevasnt response. Thanks, Chris E-mail Address: cneophytou@tesla.ece.ukans.edu
Re: suspend a progr.,logout,login&restart it again
Author: Jack Twilley
Date: Thu, 09 Sep 1993 23:21
Date: Thu, 09 Sep 1993 23:21
21 lines
1725 bytes
1725 bytes
In article <26om4i$4np@sol.TIS.COM> mjr@tis.com (Marcus J. Ranum) writes: > The reason that I would like to do that is because I have a very time >consumung program that takes about 3 days to run and I want to run whenever >nobody else is logged on so that I won't be slowing down the other users. I think that the program "screen" (check your favorite sources archive) lets you detach and reattach jobs, via some mumbo-jumbo with pseudo-ttys that you probably don't want to think about. mjr. Mmmm. Why not nice the heck out of it? Jack. -- John M. Twilley | nautilus@acm.rpi.edu | twilley@dewey.nl.nuwc.navy.mil "Our passion is like a nuclear explosion: violent anticipation, a brilliant blast of heat and light, and a beautiful sunset..." --me
Re: suspend a progr.,logout,login&restart it again
Author: Marcus J. Ranum
Date: Fri, 10 Sep 1993 01:43
Date: Fri, 10 Sep 1993 01:43
9 lines
1235 bytes
1235 bytes
> The reason that I would like to do that is because I have a very time >consumung program that takes about 3 days to run and I want to run whenever >nobody else is logged on so that I won't be slowing down the other users. I think that the program "screen" (check your favorite sources archive) lets you detach and reattach jobs, via some mumbo-jumbo with pseudo-ttys that you probably don't want to think about. mjr.
Re: suspend a progr.,logout,login&restart it again
Author: Yasushi Kuno
Date: Fri, 10 Sep 1993 04:04
Date: Fri, 10 Sep 1993 04:04
35 lines
1968 bytes
1968 bytes
rsl11@kuhub.cc.ukans.edu writes: >Hello there, Hello, > I would like to do the following in UNIX and I am wondering whther >this is is feasible. It is. >1. I would like to run a program using the nohup command so that even if >I logout the program can still be running. All right. >2. Then I would like to suspend it so that the program won't be running. >Note that I do not want the process to be killed. Use 'ps' command and memorize your program's PID. Then, you can suspend the program by 'kill -STOP <PID>'. >3. Then I want to logout and when I log in again I would like to be able to >restart the program, i.e. continue it from the point where it was before. Just do 'kill -CONT <PID>' and you can unfreeze the program. I understand that the program is not doing any terminal I/O, its output being written to some file(s). If you need terminal I/O, you can use a free software called 'pty.' > I would appreciate any relevasnt response. Hope this helps, Yasushi Kuno
Re: suspend a progr.,logout,login&restart it again
Author: Carsten Menke
Date: Fri, 10 Sep 1993 07:23
Date: Fri, 10 Sep 1993 07:23
60 lines
3254 bytes
3254 bytes
In article <1993Sep9.163846.53426@kuhub.cc.ukans.edu> rsl11@kuhub.cc.ukans.edu writes: >Hello there, > > I would like to do the following in UNIX and I am wondering whther >this is is feasible. > >1. I would like to run a program using the nohup command so that even if >I logout the program can still be running. > >2. Then I would like to suspend it so that the program won't be running. >Note that I do not want the process to be killed. > >3. Then I want to logout and when I log in again I would like to be able to >restart the program, i.e. continue it from the point where it was before. > > The reason that I would like to do that is because I have a very time >consumung program that takes about 3 days to run and I want to run whenever >nobody else is logged on so that I won't be slowing down the other users. I >have tried renicing the process but the program still slows down the users so >I would klike to do what I have explained above. In other words, I want to run >the program, suspend it, log out, login again, and restart it so that I >can continue the program. > > I have tried suspending the job using ctrl-z and logged out but after >I logged out the program was running. > > I would appreciate any relevasnt response. > >Thanks, Chris >E-mail Address: cneophytou@tesla.ece.ukans.edu Hi, the kill command should be able to stop a job until you restart it. Use kill -l to show you which signal names/numbers are available. stop: kill -STOP pid restart: kill -CONT pid On our SGI machine we can use npri -h ndpri -p pid .... (ndpri 128-255) to change priorities. Such a job will only run if there is free CPU time on a machine. I do not know if other UNIX Version do have similar commands. Carsten Menke -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_ Universitaet Bielefeld Phone [int+49] +521-106-6276 Fakultaet fuer Chemie Fax [int+49] +521-106-6146 Anorganische Chemie I Postfach D-33501 Bielefeld (Germany) email carsten@cheops.chemie.uni-bielefeld.de or carsten.menke@post.uni-bielefeld.de -_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Re: suspend a progr.,logout,login&restart it again
Author: Robert Sturrock
Date: Sat, 18 Sep 1993 13:06
Date: Sat, 18 Sep 1993 13:06
17 lines
1493 bytes
1493 bytes
mcclure@mundil.cs.mu.OZ.AU (Michael MCCLURE) writes: >screen is EVIL! >it will probably end up using more CPU time & >stuffing the users up on the system than running the >originial program during the day!!!1 I personally think it's a damned useful piece of software which I would not consider being without, but anyway .. >it totally stuffed our utmp file to boot >when we had the accursed thing here :) I believe if you install it setuid-root, it correctly manages /etc/utmp. -rob
Thread Navigation
This is a paginated view of messages in the thread with full content displayed inline.
Messages are displayed in chronological order, with the original post highlighted in green.
Use pagination controls to navigate through all messages in large threads.
Back to All Threads