Differences between version 10 and revision by previous author of CronNotes.
Other diffs: Previous Major Revision, Previous Revision, or view the Annotated Edit History
Newer page: | version 10 | Last edited on Tuesday, December 20, 2005 7:34:28 am | by JohnMcPherson | Revert |
Older page: | version 8 | Last edited on Thursday, February 24, 2005 6:55:17 am | by AristotlePagaltzis | Revert |
@@ -38,6 +38,13 @@
| <tt>@daily</tt> | Run once a day, <tt>0 0 * * *</tt>.
| <tt>@midnight</tt> | (same as @daily)
| <tt>@hourly</tt> | Run once an hour, <tt>0 * * * *</tt>.
?>
+
<tt>@reboot</tt> is particularly interesting, as cron will run such a command at system startup. This allows regular users to start their own daemons such as fetchmail(1) at boot time.
+
+!!!Troubleshooting
+!!Command isn't being run properly
+* cron uses a minimal PATH EnvironmentVariable. Explicitly set the PATH variable if you want anything not in /usr/bin and /bin (+ maybe /usr/local?)
+* You have a "%" symbol in your command, and cron treats this in a special fashion. From the crontab(5) ManPage:
+> 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. There is no way to split a single command line onto multiple lines, ala the shell’s trailing "\".