[PLUG] Cron advice needed

Don Buchholz buchholz at easystreet.net
Wed Apr 27 03:55:55 UTC 2016


Are you sure it's a zero and not the letter 'O'?   Are there any spaces to the left of the '0'?  

On April 26, 2016 8:50:30 PM PDT, John Jason Jordan <johnxj at comcast.net> wrote:
>On Tue, 26 Apr 2016 19:56:14 -0700
>John Jason Jordan <johnxj at comcast.net> dijo:
>
>>>You probably would benefit from the --delete flag. From the man page,
>
>>>this flag will "delete extraneous files from dest dirs" which I
>>>believe is what you want to accomplish.
>>
>>OK, I changed it to:
>>
>>	rsync -avx --delete /home/jjj/Mail/ /media/jjj/Data/Mail
>>
>>And it seems to be working. 
>
>I spoke to soon. It worked fine when I ran it directly from the command
>line, but crontab pukes it up:
>
>jjj at Devil-Bonobo:/media/jjj$ crontab -e
>crontab: installing new crontab
>"/tmp/crontab.xbNVsm/crontab":0: bad minute
>errors in crontab file, can't install.
>Do you want to retry the same edit? (y/n) y
>
>This is the line in crontab:
>
>0 3 * * * rsync -avx --delete /home/jjj/Mail/ /media/jjj/Data/Mail
>
>The 'minute' is 0, which worked before. 
>
>Suggestions?
>_______________________________________________
>PLUG mailing list
>PLUG at lists.pdxlinux.org
>http://lists.pdxlinux.org/mailman/listinfo/plug

-- 
Sent from my Android device with K-9 Mail. Please excuse my brevity.


More information about the PLUG mailing list