The shell script below runs as expect from the root shell prompt but not from the system cron:
What am I not seeing? Thanks.
[Edit] Seems you need absolute paths for commands in scripts from cron.
Code:
#! /bin/sh
# backup_to_usb.sh
mount /dev/da0p1 /mnt
tar cf /mnt/update.tar ---newer-mtime-than /mnt/primary.tar /usr/home
sleep 60
umount /dev/da0p1
What am I not seeing? Thanks.
[Edit] Seems you need absolute paths for commands in scripts from cron.