>Funny, just before I got your email, I set up the cron the following
>way:
>45 0 * * 2-6    /usr/sbin/amdump BIG1 >& /tmp/debug
>
>This morning, I have the following in /tmp/debug
>amdump: could not find directory /etc/amanda/BIG
>
>I am not sure why BIG1 is being truncated to BIG, and why did it just
>start to happen.

Two things.  The output redirect you added, ">&", is a csh-ism.  Is your
cron running the amanda entries with that shell, or is it running them
with /bin/sh?

One way to tell would be to add a temporary entry like this:

  ... ps -p $$ > /tmp/cron.shell.test

Second, it looks like the '1' on the end of "BIG1" got mis-interpreted
by the shell (or you have a typo).  The '1' got put together with the
output redirection as though you had done this:

  /usr/sbin/amdump BIG 1>& /tmp/debug

which means "redirect file descriptor 1 (stdout) to this file".  That also
implies cron is using some sh variant (sh, ksh, bash) rather than csh, so
you should really be using this syntax (which is the equivalent of ">&"):

  /usr/sbin/amdump BIG1 > /tmp/debug 2>&1

>Karl Bellve

John R. Jackson, Technical Software Specialist, [EMAIL PROTECTED]

Reply via email to