Am 20.08.2010 18:46, schrieb Jon LaBadie: >> Does anyone recommend adding such a cron-wrapper which sources >> .profile and .bashrc ? > > I'd advise against sourcing .profile and/or any 'rc' files. They > typically contain items of use in an interactive session, think > settings for PS[1-4], aliases, functions, favorite printer, etc. You > don't want an alias that happens to match a command name used in your > cronjob taking precedence. > > Also, you have given up some security because now the cronjob is only > as secure at the .profile/rc scripts. > > I would not advise against running a wrapper that set specific > things needed by the cronjob.
Good point(s), Jon, thank you! I would only like to somehow compare the environment variables, just to narrow down the reasons ... Would crontabbing something like "env >> my_result" work? ;-) Stefan