On Thu, Jan 17, 2002 at 03:02:36PM -0700, Steve Wolfe wrote:
>
> OK, I'm lost, and obviously clueless. As part of a backup script that
> I'm writing to replace our current backup solution, I'm doing this:
>
> DEVICE=/dev/st0
> NR_DEVICE=/dev/nst0
> DUMP=/sbin/dump
> XFSDUMP=/usr/sbin/xfsdump
>
> (snip)
>
> then
> CMD="$XFSDUMP -m -o -l 0 -F -f $NR_DEVICE $FS"
> [ $DEBUG !=0 ] && echo "$$: Executing \"$CMD\"..."
> `$CMD`
> fi
>
> Alrighty, then. Whenever it runs from a cron job, I get:
> ------
> 10488: Executing "/usr/sbin/xfsdump -m -o -l 0 -F -f /dev/nst0 /home"...
> /root/sys_backup.sh: /usr/sbin/xfsdump:: No such file or directory
you need to start your script with #!/bin/sh as the very first line.
--
Ethan Benson
http://www.alaska.net/~erbenson/
pgpuCqRwTC4hN.pgp
Description: PGP signature
|