Kill via Cron...
mcoyles
mcoyles at horbury.wakefield.sch.uk
Tue Apr 20 08:04:35 UTC 2010
Morning all - on FreeBSD 7.1 (for various reasons - don't ask)
Am attempting to run the following via cron but it keeps erroring out:
kill -9 `ps ax | grep backup | grep -v grep | awk '{print $1}'` && kill -9
`ps ax | grep dump | grep -v grep | awk '{print $1}'`
Error:
usage: kill [-s signal_name] pid ...
kill -l [exit_status]
kill -signal_name pid ...
kill -signal_number pid ...
Works OK from commandline - what do I need to change to make this cronable??
Cheers
Marci
More information about the freebsd-questions
mailing list