kill -s STOP $$

I thought that command was really great. I honestly thought the kill
command was sending the stop signal to itself. This seemed a bit of a
revelation to me. That that kind of thing could happen.

But as always the reality is different to what's in my head. It turns
out, the kill command below is actually sending the stop signal to the
shell it is running in.


open two xterms, in the first type:

echo $$

The number displayed is the PID (process ID) of the shell (ie
BASH/DASH/CSH/etc). Remember the number.

kill -s STOP $$

in the second terminal type:

kill -s CONT nnnn

Where nnnn is the number you were told to remember, ie the PID of the
shell you stopped with the kill command from within.

continued from within.
_______________________________________________
NetBehaviour mailing list
[email protected]
http://www.netbehaviour.org/mailman/listinfo/netbehaviour

Reply via email to