[comp.unix.questions] Stopping and re-starting processes

overby@agrigene.UUCP (Scott Overby) (11/30/89)

We running a Pyramid 98xe with OSx4.0.  How or can one, as a superuser, stop 
and then re-start processes?  I know the owner can perform this by ^Z and
then fg.


Scott Overby
Agrigenetics Company
Madison, WI

jonathan@cs.keele.ac.uk (Jonathan Knight) (12/01/89)

From article <482@agrigene.UUCP>, by overby@agrigene.UUCP (Scott Overby):
> We running a Pyramid 98xe with OSx4.0.  How or can one, as a superuser, stop 
> and then re-start processes?  I know the owner can perform this by ^Z and
> then fg.

Two methods for stopping, first get the process number, then type
	stop <proc-number>
from csh, or from any shell
	kill -STOP <proc-number>

e.g. 
	% stop 22328
or
	% kill -STOP 22328

starting, however is a little tricky.  In theory
	kill -CONT <proc-number>
e.g.
	% kill -CONT 22328
should do the trick, however when I tried it my process got stuck
waiting for output.  Looks like you might need to make sure that
'stty tostop' is switched off.
-- 
  ______    JANET :jonathan@uk.ac.keele.cs     Jonathan Knight,
    /       BITNET:jonathan%cs.kl.ac.uk@ukacrl Department of Computer Science
   / _   __ other :jonathan@cs.keele.ac.uk     University of Keele, Keele,
(_/ (_) / / UUCP  :...!ukc!kl-cs!jonathan      Staffordshire.  ST5 5BG.  U.K.