Loading ...
Sorry, an error occurred while loading the content.

Re: [nslu2-general] drivertodrivercp modified but not running from crontab

Expand Messages
  • unix fan
    What does your crontab entry say (i.e., what s the output of crontab -l ?) ... __________________________________________________ Do You Yahoo!? Tired of
    Message 1 of 6 , Dec 15, 2004
    • 0 Attachment
      What does your crontab entry say
      (i.e., what's the output of "crontab -l" ?)


      --- peecock41 <peecock41@...> wrote:

      >
      > In order to get the backup working from disk 1 to
      > disk 2 under unslung
      > 2.12 I installed rsync and modified
      > /usr/sbin/drivertodrivercp to use it.
      >
      > Here's the modified snippet of drivertodrivercp
      >
      > ---
      > touch /tmp/DriveBackuping
      > #/usr/sbin/drive_backup --delete /share/hdd/conf/
      > /share/flash/conf/
      > #/usr/sbin/drive_backup --copy /share/hdd/conf/
      > /share/flash/conf/
      > /opt/bin/rsync -a --delete --delete-after
      > /share/hdd/conf/
      > /share/flash/conf
      > if [ $? = 0 ]; then
      > /opt/bin/rsync -a --delete --delete-after
      > /share/hdd/data/
      > /share/flash/data
      > fi
      > ---
      > (Note: the rsync lines run on to the next line)
      >
      > If I run this drivertodrivercp by hand it works
      > fine, if I let it run
      > through /etc/crontab it exits without doing
      > anything.
      >
      > Why doesn't it want to run properly through the
      > crontab?
      >
      > Thanks for any help,
      >
      > Albert
      >
      >
      >
      >


      __________________________________________________
      Do You Yahoo!?
      Tired of spam? Yahoo! Mail has the best spam protection around
      http://mail.yahoo.com
    Your message has been successfully submitted and would be delivered to recipients shortly.