Path: utzoo!attcan!uunet!zephyr.ens.tek.com!uw-beaver!mit-eddie!snorkelwacker!apple!mips!swrinde!zaphod.mps.ohio-state.edu!sdd.hp.com!hplabs!hpda!hpcupt1!hpisod2!decot From: decot@hpisod2.HP.COM (Dave Decot) Newsgroups: comp.unix.internals Subject: Re: suspension of long process Message-ID: <30780001@hpisod2.HP.COM> Date: 4 Oct 90 17:24:04 GMT References: <3940@ruuinf.cs.ruu.nl> Organization: Hewlett Packard, Cupertino Lines: 17 The signal SIGSTOP can be sent to the process (or process group) from some other process at any time in the future, and the process (group) will be suspended. To get it going again later, it can send the SIGCONT signal to the process (group). You can have the job itself save the process (group) ID by having it open some file and write its process ID there (or process group ID, from calling getpgid()), and picking it up later. From a shell script or cron job (see crontab(1)), this would be: kill -24 `cat /tmp/foopid` # stop the foo job kill -26 `cat /tmp/foopid` # resume the foo job Dave Decot (This is not necessarily HP's opinion and no warranty is expressed or implied.)