Unfortunately no one can be told what fun_plug is - you have to see it for yourself.
You are not logged in.
I had RSync running for a while via cron. However last couple of days it has not been executing at its scheduled time. If I run just the RSync command by its own, it runs absolutely fine, but not via cron.
If I do "crontab -l", I can see the entries, but they never seem to run.
Here is my editcron.sh file:
---------------------------------
#!/bin/sh
CRONTXT=/mnt/HD_a2/crontab.txt
. /mnt/HD_a2/ffp/etc/profile <--- Tried with and without this line with same result.
# start with existing crontab
/bin/crontab -l > $CRONTXT
# add the Rsync job to execute at 2:05 am - also create a logfile
/bin/echo "36 16 * * * /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_a2/Main_1 /mnt/HD_b2/Main_1_Bkup >/mnt/HD_a2/ffp/log/rsync.last.log 2>&1" >> $CRONTX
# install the new crontab
/bin/crontab $CRONTXT
# clean up
/bin/rm $CRONTXT
---------------------------------
And crontab -l shows me this:
---------------------------------
*/15 * * * * prescan
*/10 * * * * /usr/sbin/getdhcp&
36 16 * * * /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_a2/Main_1 /mnt/HD_b2/Main_1_Bkup >/mnt/HD_a2/ffp/log/rsync.last.log 2>&1
---------------------------------
Any ideas?!
Thanks!
Offline
sarge_in wrote:
I had RSync running for a while via cron. However last couple of days it has not been executing at its scheduled time.......
---------------------------------
*/15 * * * * prescan
*/10 * * * * /usr/sbin/getdhcp&
36 16 * * * /mnt/HD_a2/ffp/bin/rsync -rlptDv --delete /mnt/HD_a2/Main_1 /mnt/HD_b2/Main_1_Bkup >/mnt/HD_a2/ffp/log/rsync.last.log 2>&1
---------------------------------
Any ideas?!
Have you checked the log (rsync.last.log) file for errors?
Offline
Yes, but the log file is not created/updated at all (no change in timestamp of the log file). It stays the same as was created by a prior (manual) run of that statement.
Offline
I stumbled on similar things, and alI I could do to make the crontab correctly taken in account was kill crond and start it again.
I already mentioned this (non cron-standard) behaviour here, wondering if this was cron bug or error from my side, but there was no reaction (see last article in http://dns323.kood.org/forum/t2822-Crontab-nobody.html ).
Offline
sometimes crontab file gets screwed (dos format).. try to do
#dos2unix /var/spool/cron/crontabs/root
and see if it works out..
Offline
Thanks for the replies.
Before I saw these responses, I removed fun plug and reinstalled it from scratch. That fixed the problem and cron is now running fine. --> Love the so-easy uninstall! The longest time was SSH keys regeneration. Apart from that, it took maybe 10 mins (now that I am more comfy with this) - COOL!
If I see the problem again (hopefully not!) will try the above.
Cheers!
Offline