PROJET AUTOBLOG


Shaarli - Les discussions de Shaarli

Archivé

Site original : Shaarli - Les discussions de Shaarli du 23/07/2013

⇐ retour index

Common Cron Mistakes | alleft.com

lundi 23 mars 2015 à 12:58
GuiGui's Show - Liens 23/03/2015
« The first important observation about the crontab file is this: It’s not a shell script. Sure, it looks a bit like a shell script since you can set some variables, but it’s not. It’s best to think of the crontab as an interpreted file that happens to support some variable declarations that look a lot like a shell script. But they are simple name = value pairs NOT shell variables. The “value” must be a simple value. For example, you can not de-reference a crontab “variable” in a value

[...]

#Does not work because sub-shells have no meaning in a crontab file.
PATH=`path_script`:/bin

[...]

Percent signs need to be escaped »
(Permalink)