NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Cron cvs?

On 9/14/08, J.D. Bronson <> wrote:
> I am trying to setup a root crontab to run cvs each sunday.
>  I just want to run this command:
>  -------------
>  /usr/bin/cvs -q up -Pd | /usr/bin/mailx -s "CVS" root
>  -------------
>  If i run it from command line (within /usr/src), it works.
>  Anytime I try to cron this, I get just an empty email and the job
>  only ran for 1sec.
>  Can someone point me as to what I need to do to cron this?
>  thanks!

You might want to add a "cd /usr/src &&" to the front of that.  You
can't trust anything about the cron environment.  Obviously, once this
works you should go crazy putting useful messages in the email
subject, etc.  :)


Home | Main Index | Thread Index | Old Index