PDA

View Full Version : Adding a definition to the crontab



dkinzer
07-12-2006, 03:41 PM
It is convenient to make some definitions in a crontab to allow the commands to be specified more succinctly. In the past, on Linux boxes and at other web hosts, I have directly edited the /etc/crontab file. Using the crontab tool in cPanel, I can't figure out how to add a line like the one below to the crontab and ensure that it will be seen by the crontab processor prior to any command entries.

PHP="/usr/local/bin/php"
If such a line can be added, then a command can simply use $PHP in place of the longer string. This is most useful if several commands need to use the same strings.