On 3/15/08, T o n g <[EMAIL PROTECTED]> wrote:
> Hi,
>
> Please take a look at the following cron task:
>
> * * * * *     root    ps -eaf | grep -E 'cdrecord.* -[dts]ao |cdrdao
> *write|growisofs.*speed=' > /dev/null || logger get executed.

I'm not exactly sure why you want to do that  - the five asterisks
mean run this command every minute of every day.

> PS. I'm sure the PATH is setup properly in my cron, so cron can find ps &
> grep.

cron runs in a restricted environment and doesn't (to my knowledge)
source $PATH from anywhere, so you need to explicitly add the paths
(i.e., /usr/bin/cdrecord) or run a shell script that sets those & then
runs your command.


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

Reply via email to