Date: Tue, 20 Apr 2010 08:52:58 +0100 From: "mcoyles" <mcoyles@horbury.wakefield.sch.uk> To: <questions@freebsd.org> Subject: Kill via Cron... Message-ID: <002c01cae05e$7eab3ea0$7c01bbe0$@wakefield.sch.uk>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?002c01cae05e$7eab3ea0$7c01bbe0$>