Hi all,

Ok, I want to use the time command in my crontab...

Working crontab entry:

58 6,11,16,21 * * * rsnapshot -c /etc/rsnapshot/myhost.conf sync; rsnapshot -c 
/etc/rsnapshot/myhost.conf hourly

Non-working (with time command added):

58 6,11,16,21 * * * time { rsnapshot -c /etc/rsnapshot/myhost.conf sync; 
rsnapshot -c /etc/rsnapshot/myhost.conf hourly }

Adding the time { } to the command results in the following error being emailed:

/bin/sh: -c: line 1: syntax error: unexpected end of file

Obviously this is more proof of my lack of understanding bash, but googling hasn't revealed a solution, so any help is appreciated...

Thanks

Reply via email to