December 2010
5 posts
1 tag
Suspend and resume processes
I always searched an easy way to suspend and resume processes (useful to save resources without quitting programs). First, add the following lines in your .profile
pause () { kill -SIGSTOP `pidof "$*"`;}
resume () { kill -SIGCONT `pidof "$*"`;}
then add the following shell script to your PATH
#!/bin/sh
ps axc|awk "{if (\$5==\"$1\") print \$1}"|tr '\n' ' '
and make it executable. To pause a...
1 tag
LaTeX style tips →
Check it out if you use LaTeX. A lot of insightful tips.
3 tags