View Single Post
  #6  
Old 1st September 2011, 07:02
fweijers fweijers is offline
Junior Member
 
Join Date: Aug 2009
Posts: 11
Thanks: 0
Thanked 2 Times in 2 Posts
Default

By the way, one less important thing i cant explain....

The crontab - l shows this:
root@DLINK:~# crontab -l
32 2 * * * /usr/sbin/rtc -s
30 2 2 * * /usr/sbin/rtc -c
59 1 * * * /usr/sbin/daylight &
5 2 * * * /ffp/bin/snapshot.sh
5 2 * * * /ffp/bin/snapshot.sh
5 4 * * * /ffp/bin/snapshotMYBOOKWORLD.sh

As you can see /ffp/bin/snapshot.sh is started twice ... how can this be?

Crontab is configured using this script:
#!/bin/sh

CRONTXT=/mnt/HD_a2/crontab.txt

# start with existing crontab
/bin/crontab -l > $CRONTXT

# add the Rsync job to execute at 2:00 am
/bin/echo "5 2 * * * /ffp/bin/snapshot.sh" >> $CRONTXT
/bin/echo "5 4 * * * /ffp/bin/snapshotMYBOOKWORLD.sh" >> $CRONTXT

# install the new crontab
/bin/crontab $CRONTXT

# clean up
/bin/rm $CRONTXT

Reply With Quote