A user crontab entry that reads:
0 */4 * * * $HOME/postscript/fprogcache-sync
works fine. Wanting to add a few environment variables to the cron-job context, I then tried
0 */4 * * * source $HOME/.profile; $HOME/postscript/fprogcache-sync
That did not work until I changed source
for .
. The error message (sent by postfix mail to root) was /bin/sh: 1: source: not found
, followed by confirmation that the script went on to execute happily.
I remember having read somewhere that source
is defined as an alias of the builtin .
in the bash shell. If so, it would explain why source
is not recognized in the cron context.
Is it the case? If so, where is the system wide alias for .
defined?