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 environment




>> (dmoylan at ibm.net)
>> in executing scripts called under crontab, my local environment
>> variables are not recognized.  is there some simple way to make
>> this happen?

> (kclark at cabletron.com)

> Assuming you're trying to start a shell script via cron, add something
> like this:
>    . $HOME/.profile
> to the top of your shell script.  If you're not starting a shell
> script, create a shell script wrapper around  your intended program
> and perform this action in that.

> cron is *famous* for starting programs with a dearth of environment
> variables...

yup, that's it!  the wrapper worked fine to play my perl scripts.

thanks,

dan moylan
	
-
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