Hi! Thomas Pfaffinger wrote: > Subject: Cron <[EMAIL PROTECTED]> /backup/bin/backup.sh $(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) / > #Wochenbackup > 00 22 2-31 * 5 root /backup/bin/backup.sh > KW$(date +%V) / > #Monatsbackup > 00 22 1 2-12 * root /backup/bin/backup.sh > $(date +%Y-%B) / > #Jahresbackup > 00 22 1 1 * root /backup/bin/backup.sh > $(date +Y) /
Schau' mal genau hin, bis wohin die Zeile in der Fehlermeldung angezeigt wird. man 5 crontab: The entire command portion of the line, up to a newline or % character, will be executed by /bin/sh or by the shell specified in the SHELL variable of the crontab file. Percent-signs (%) in the command, unless escaped with backslash (\), will be changed into newline characters, and all data after the first % will be sent to the command as standard input. Jetzt aber viel Erfolg, Hans-Jürgen ;-)