When the Linux system is performing scheduled tasks, the shell script suddenly stops executing. Many users are unclear. So what caused the shell to not execute? In fact, the reason is very simple, the following small series will introduce you to the Linux timing task shell script to stop the implementation of the solution.
The reason is that the timing of the task is no environment variable, import environment variables in your shell script, import environment variables
In the uppermost shell script solution
export PATH=$PATH:/bin:/usr/bin:/usr/local/bin
Example:
Executing /bin/every 0th hour of every month Ls :
0 * * * * /bin/ls
During the month of December, every day from 6 am to 12 am, /usr/bin/backup is executed every 20 minutes. :
*/20 6-12 * 12 * /usr/bin/backup
Send a letter to [email protected] every Monday to Friday at 5:00 pm:
0 17 * * 1-5 mail -s “hi” [email protected] /tmp/maildata
Everyday at midnight every day at 0:20, 2:20, 4 Point 20 points. . . . Execute echo “haha”
20 0-23/2 * * * echo “haha”
If you stop the shell script during scheduled tasks, then most of the shell scripts are not imported Environment variables can be added to the relevant code described in this article.
Learning to use a Linux system is actually a process of mastering many commands, bu
In Linux, echo is a DOS batch processing command that can be used to set the displa
Under Linux system, some txt files are relatively large, and it is very inconvenien
Linux users have a lot of people using svn, but now many users have switched to git
Linux how to use awk for array sorting
After Ubuntu 12.04 restarts, Ubuntu is running in low-graphics mode
Linux set swap swap partition steps
How Ubuntu implements screen-to-cut
HP notebook Debian compiler sound card driver method
Linux installation and configuration mongodb method
Linux vim shows utf-8 document garbled how to do?
How to install and use Trickle in Linux
How to use the web page editor CKEditor under Linux
What should I do if Ubuntu prompts the list error when opening the software center?
How to restart Tomcat regularly on Linux system
How to configure the permissions of the Linux system sudo command?
Win8 create task plan operation method graphic tutorial
CF ghost frenzy biochemical strikes advanced replenishment limited time collar
What should I do with the Win8 system? Quickly solve the Win8 Kardon method
Win8.1/Win8.1 Update Tip: Input Method Settings
How to set the boot entry for Win7 system?
Get back the Windows 7 system boot animation practical skills
More than the Internet IE address bar magic
Linux off the alarm tone and modify the resolution