2073 shaares
148 private links
148 private links
Où j'apprends que le signe % sert de nouvelle ligne dans cron, et qu'il faut donc l'échapper si on l'utilise dans une commande (dans mon cas, un date +%F )
"""
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 cronfile. 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.
"""