[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Probleme mit crontab



Hallo,

Thomas Pfaffinger <tp001@gmx.net>:

>Subject: Cron <root@*******> /backup/bin/backup.sh KW$(date +
>/bin/sh: -c: line 1: unexpected EOF while looking for matching `)'
>/bin/sh: -c: line 2: syntax error: unexpected end of file

>#Tagesbackup
> 00     22      2-31    *       1-4     root    /backup/bin/backup.sh 
>$(date +%A) /

>Sieht jemand den fehler? Ich bin ratlos :-(

Das %-Zeichen hat in der Crontab eine spezielle Bedeutung und
muss daher escaped werden:

/backup/bin/backup.sh $(date +\%A)

Gruß, Harald



Reply to: