« 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 »
Mon Mar 23 12:58:38 2015 - permalink -
-
http://www.alleft.com/sysadmin/common-cron-mistakes/