> Someone suggested using $$ for the PID, but I believe that is only within > the scope of that process (i.e. within the script itself), and possibly not > useful in this instance since you want to kill a process from another > process.
If you wrapper the desired program, you could do: echo $$ > /var/local/myprog.pid exec /path/to/myprog args Then later, kill `head -1 /var/local/myprog.pid` With error checks, but. -- TriLUG mailing list : http://www.trilug.org/mailman/listinfo/trilug TriLUG Organizational FAQ : http://trilug.org/faq/ TriLUG Member Services FAQ : http://members.trilug.org/services_faq/ TriLUG PGP Keyring : http://trilug.org/~chrish/trilug.asc
