Cron Mystery - SOLVED
Phil Buckley
phil at 1918.com
Mon May 21 21:35:56 EDT 2001
Thanks to everyone who chimed in to help, but in the end, I had to re-install vixie-cron to fix the problem... sheesh!
All is workking now, I was glad to learn I hadn't suddenly become a complete idiot ;-)
*********** REPLY SEPARATOR ***********
On 5/21/01 at 9:32 AM David Kramer wrote:
>On Mon, 21 May 2001, Jerry Feldman wrote:
>
>> Just a guess, but remember that cron expects a Bourne Shell Script, not
>> a Perl script. I have several Bourne scripts that run under cron and send
>> email. Remember that cron does not execute your ~/.profile, so you may
>> need to update your path and other variables. You can easily solve the
>> problem by writing a short Bourne Shell script as a wrapper around your
>> Perl script.
>
>Also remember that when cron runs your job, it will _NOT_ have your
>default path.
>
>Maybe sendEmail() tries to execute sendmail or mail without a path. Try
>copying your root's $PATH and set it explicitly at the top of your cron
>file (you can set vars in your crontab file just like in a shell script).
>
>------------------------------------------------------------------
>DDDD David Kramer http://thekramers.net
>DK KD
>DKK D Geek By Nature
>DK KD
>DDDD Linux By Choice
>
>-
>Subcription/unsubscription/info requests: send e-mail with
>"subscribe", "unsubscribe", or "info" on the first line of the
>message body to discuss-request at blu.org (Subject line is ignored).
-
Subcription/unsubscription/info requests: send e-mail with
"subscribe", "unsubscribe", or "info" on the first line of the
message body to discuss-request at blu.org (Subject line is ignored).
More information about the Discuss
mailing list