Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!

Click here to return to the 'Keep track of stopped processes via shell variables' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Keep track of stopped processes via shell variables
Authored by: seann on Dec 15, '03 06:34:43PM

killall -STOP acrobat


[ Reply to This | # ]
Authored by: gatorparrots on Dec 16, '03 04:05:32PM
As noted, killall is the tool for the job, as it takes named arguments versus PIDs with kill (which would require additional pipes to grep and awk processes). To better facilitate pausing/continuing processes, set up shell aliases like so:

Bourne shell style:
pause="killall -STOP $1"
cont="killall -CONT $1"

C shell style:
pause="killall -STOP \!:1"
cont="killall -CONT \!:1"

[ Reply to This | # ]