| Home
| Calendar
| Mail Lists
| List Archives
| Desktop SIG
| Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings Linux Cafe | Meeting Notes | Linux Links | About BLU |
dmoylan at ibm.net writes:
> in executing scripts called under crontab, my local environment
> variables are not recognized. is there some simple way to make
> this happen?
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...
--kevin
--
Kevin D. Clark | |
kclark at NOSPAM.ctron.com | kdcNOSPAM at alumni.unh.edu | Give me a decent UNIX
Cabletron Systems, Inc. | PGP Key Available | and I can move the world
Durham, N.H. (USA) | |
-
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).