🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.ultrix
Article #8902

Re: suspend a progr.,logout,login&restart it again

#8902
From: Carsten Menke
Date: Fri, 10 Sep 1993 07:23
60 lines
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

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_
Technical Details
Message-ID: <CD4n7r.B5C@hermes.hrz.uni-bielefeld.de>
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!xlink.net!math.fu-berlin.de!uni-paderborn.de!urmel.informatik.rwth-aachen.de!rubb.rz.ruhr-uni-bochum.de!news.uni-bielefeld.de!carsten
References: <1993Sep9.163846.53426@kuhub.cc.ukans.edu>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10b612,b19a2b207f328863
X-Google-Attributes: gid10b612,public
X-Google-Thread: faae6,b19a2b207f328863
X-Google-Attributes: gidfaae6,public
X-Google-Thread: 10f9b1,b19a2b207f328863
X-Google-Attributes: gid10f9b1,public
X-Google-ArrivalTime: 1993-09-10 00:39:18 PST
Newsgroups: comp.unix.ultrix,comp.unix.wizards,fj.questions.unix
Path: arc1-ca.pugleaf.net!gmd.de!newsserver.jvnc.net!howland.reston.ans.net!xlink.net!math.fu-berlin.de!uni-paderborn.de!urmel.informatik.rwth-aachen.de!rubb.rz.ruhr-uni-bochum.de!news.uni-bielefeld.de!carsten
From: carsten@hrz.uni-bielefeld.de ( Carsten Menke)
Subject: Re: suspend a progr.,logout,login&restart it again
Sender: news@hermes.hrz.uni-bielefeld.de (News Administrator)
Message-ID: <CD4n7r.B5C@hermes.hrz.uni-bielefeld.de>
Date: Fri, 10 Sep 1993 07:23:50 GMT
References: <1993Sep9.163846.53426@kuhub.cc.ukans.edu>
Nntp-Posting-Host: dave.hrz.uni-bielefeld.de
Organization: Universitaet Bielefeld, Rechenzentrum
Lines: 62