On Sat, Mar 15, 2008 at 09:42:41PM +0000, T o n g wrote:
> >> * * * * *  root    ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao
> >> *write|growisofs.*speed=' > /dev/null || logger get executed.
> >> PS. I'm sure the PATH is setup properly in my cron, so cron can find ps
> >> & grep.

You could, for debugging pourposes:
* look at mails that cron sends if a commnd give any output;
* replace temporarilly the command with
  set -x;echo $PATH;which ps;which grep;which find;which logger;ps -eaf | grep 
-E ...
* replace the command with a shell script which executes the command in a shell
  with set -x and/or other shell debugging options; for example also
  temporarilly drop redirection to /dev/null

-- 
Chi usa software non libero avvelena anche te. Digli di smettere.
Informatica=arsenico: minime dosi in rari casi patologici, altrimenti letale.
Informatica=bomba: intelligente solo per gli stupidi che ci credono.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to