> while ps -ef | grep $processname; do sleep 60; done && echo "done" | \ > mail -s "subject" user > But it might be tricky to identify the right process.
grepping ps will invariably also return the grep line, so this will hit a false positive. Better to use pgrep rather than ps & grep. Using pgrep without any switches will just return the process number. -- section .data sig: db 'Spiro Harvey',0x0a db 'UNIX Specialist, Writer, Editor',0x0a homepage: db 'http://twiddle.starforge.net.nz',0x0a
signature.asc
Description: PGP signature