Originally Posted by
mohicann
Thank for you reply. There are exactly the same. I assume it doesn't come from relative and absolute paths?
I suspect you aren't doing it correct then. Let me check mine. Ok ... that ran.
Code:
$ wc -l env*
16 env.cron
74 env.int
The interactive env is VERY DIFFERENT from the env under cron.
Oddly, HOME and PWD are set - those are both new to me in a crontab. Very unexpected. It wasn't that way 10 yrs ago.
Code:
SHELL=/bin/sh
PATH=/usr/bin:/bin
PWD=/home/thefu
But a bunch of other variables are missing and the PATH is certainly tiny under cron. USER is not set, but LOGNAME is. Interesting.
Much of my cron knowledge comes from UNIX systems, so some things are a little different.
Bookmarks