George Toft wrote:
> #!/bin/bash
>
> while [ 1 ]; do
> # Make a copy
> cp corewar corewar.$$
>
> # Run it
> ./corewar.$$ &
>
> # Start over
> done
type it blind, as fast as possible:
renice -20 $$
rm corewar
rm corewar*&
renice 20 `ps ax | grep core | grep -v grep | cut -c 1-5`& kill -9 `ps
ax | grep core | grep -v grep | cut -c 1-5`&
rm corewar*&
renice 20 `ps ax | grep core | grep -v grep | cut -c 1-5`& kill -9 `ps
ax | grep core | grep -v grep | cut -c 1-5`&
----
Single file no-loop variant:
#/bin/sh
$0&$0&
----
--
jkenner @ mindspring . com__
I Support Linux: _> _ _ |_ _ _ _|
Working Together To <__(_||_)| )| `(_|(_)(_|
To Build A Better Future. | <s>