Newsgroups: comp.unix.ultrix,comp.unix.wizards,fj.questions.unix
Path: galaxy.trc.rwcp.or.jp!jaist-news!cs.titech!wnoc-tyo-news!sh.wide!news.Hawaii.Edu!ames!elroy.jpl.nasa.gov!usc!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
Xref: galaxy.trc.rwcp.or.jp fj.questions.unix:4041
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.questions.unix&nb=4041&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.

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

-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_-_


