1. Execute crontab-e directly in the command line.
2. Add the execution script statement, for example:
# Test for project-name to send email to admin, add by *** (2011-11-10)
0, ***/email. Sh
Note that when you add a new timer, you will have a good habit of adding a comment, indicating the role, Creation Time, And creator.
If you want to learn how to add an automatic execution script command, you can view the following three urls:
Http://www.thegeekstuff.com/2009/06/15-practical-crontab-examples/
Http://adminschoice.com/crontab-quick-reference
Http://baike.baidu.com/view/1229061.htm
Http://www.blogjava.net/xiaomage234/archive/2007/12/26/170490.html
3. Save and exit (if you want to take effect immediately, remember to: WQ. If you do not exit editing, it will not be installed and executed)
4. After saving, you can see the following information, indicating that the timer is successfully added.
Note: In the automatic execution script, all executions must be written to the full path! For example, to execute a PHP script in the script, you must use/usr/local/PHP/bin/PHP test. php.