Crontab is a unix background process that schedules other unix jobs. In order to be edited, the admininistrator must set the EDITOR enviromental variable. The steps are:
To set PATH, enter:
Change or Set Environment Variable
You can use the following command to change the environment variable for the current session as per your shell.For Korn shell (KSH)
The syntax is as follows:EDITOR=vi export EDITOR
For Bourne shell (sh and bash)
The syntax is as follows:export EDITOR=vior
EDITOR=vi
export EDITOR
To set PATH, enter:
export PATH=$PATH:/opt/bin:/usr/local/bin:$HOME/bin
For C shell (csh or tcsh)
The syntax is as follows:setenv var valueSet EDITOR to vim, enter:
setenv EDITOR vi
There are plenty of type editors, the most common are vi, , emacs, joe
After having set the EDITOR, type the command "crontab -e" to edit crontab
job scheduler.
To list the cron jobs type "crontab -l"
More information about the enviromental variables in Unix and
how to manipulate them can be found on this article
http://www.cyberciti.biz/faq/set-environment-variable-unix/
Δεν υπάρχουν σχόλια:
Δημοσίευση σχολίου