On Fri, Aug 20, 2010 at 04:22:56PM +0200, Stefan G. Weichinger wrote: > Am 19.08.2010 19:45, schrieb Dustin J. Mitchell: > > On Thu, Aug 19, 2010 at 12:26 PM, Stefan G. Weichinger <[email protected]> > > wrote: > >> We'll see what the cronjob will do ... What might be the difference? > > > > Environment variables, usually. Some systems have other context > > (e.g,. Mach-based systems) that is inherited with a process. Selinux > > might be involved, but I assume you've disabled that. > > Yes, no selinux involved. > As before the manual amdump succeeded. > > The cronjob runs again in around 5 hrs (21h CEST), we will see. > > I googled around for info about the (different) environment for > cronjobs, found this: > > http://serverfault.com/questions/114702/crontab-environment > > 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. -- Jon H. LaBadie [email protected] JG Computing 12027 Creekbend Drive (703) 787-0884 Reston, VA 20194 (703) 787-0922 (fax)
