cronjobs
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cronjobs [2015/04/12 12:50] – created luke7858 | cronjobs [2024/05/23 07:26] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
=== Format === | === Format === | ||
+ | __**Note**: | ||
+ | Eg. On the command-line you may type: | ||
+ | <sxh bash> | ||
+ | holland bk | ||
+ | </ | ||
+ | This is because bash shells introduced the $PATH environment variable: | ||
+ | <sxh bash> | ||
+ | # echo $PATH | ||
+ | / | ||
+ | </ | ||
+ | The shell will then search the environment variables from right to left until it finds the appropriate path. This allows you to type the command and options rather than the full path to the init script. \\ | ||
+ | Cron DOES NOT have this functionality. You will need to type the full path: | ||
+ | <sxh bash> | ||
+ | # which holland | ||
+ | / | ||
+ | </ | ||
+ | The cron would then look like: | ||
+ | <sxh bash> | ||
+ | 00 2 * * * / | ||
+ | </ | ||
+ | \\ | ||
+ | \\ | ||
+ | === Format === | ||
To view the format of crontabs you can read the file / | To view the format of crontabs you can read the file / | ||
<sxh bash> | <sxh bash> |
cronjobs.1428843047.txt.gz · Last modified: 2024/05/23 07:26 (external edit)