Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive


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

Cron Mystery



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).




BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!



Boston Linux & Unix / webmaster@blu.org