On Thu, May 20, 2004 at 01:58:34PM -0700, Steven Schoch wrote:
>
>
> Here's some new information: I ran amdump on the command line, after "su
> amanda". It sucessfully connected to marge (although it failed with "can't
> switch to incremental dump" as expected). The exact same command fails
> when run from cron. This leads me to believe that either:
>
> 1. It's a timing issue; or
> 2. There is something different in the environment when run from cron.
Indeed there very likely are significant environment differences.
Cron jobs are run without .profile/.*rc file processing, with
/bin/sh, even if that is not the users login shell, and with a
minimal PATH setting.
There has been at least one instance on the list of multiple
installations of amanda. Login environment executed one,
unexpectedly, cron jobs executed another.
--
Jon H. LaBadie jon AT jgcomp DOT com
JG Computing
4455 Province Line Road (609) 252-0159
Princeton, NJ 08540-4322 (609) 683-7220 (fax)
|