If your system manager has set a per-user process limit on your
computer, the good news is that your processes won't
eventually crash the system. But the bad news is, when you try to run
any command that isn't built
into the shell (Section 1.9) (like
killall (Section 24.16), which would be nice to use in this
situation, if you have it):
% killall -STOP myprog
No more processes.
you can't because you're already at
your limit.
If that happens, log on to another account or ask someone to run a
command that will give a list of your processes. Depending on your
system, the command is probably like one of these two:
% ps -u yourname
System V
% ps aux | grep yourname
BSD
Then go back to your terminal and
start stopping :-). If you get the No
more processes error, your shell must
not have a built-in kill command. Many shells
do -- including bash and
csh. Carefully type the next
commands to be sure that /bin/bash exists
(assuming your shell has a built-in echo, this
trick[76] bypasses the external ls
command); then, if the shell is there, replace your shell with
bash. Don't make a mistake (if
you do, you may not be able to log in again):
exec Section 36.5
$ echo /bin/bas?
/bin/bash
$ exec /bin/bash
bash$ kill ...