Linux has developed rapidly in recent years. As a result, many people begin to learn about Linux and you will encounter many Linux commands. Here we will introduce some usage of Linux crond and hope you will learn about Linux crond. After Linux was cropped, crond could not be started. After a day of testing, we finally learned how to solve this problem.
1. First Use crontab to read the crontab file with the root permission, or manually edit the crontab file once.
2. Start crond.
Write the following script into the startup Item to enable crond smoothly. In this way, you can save yourself from writing the timer code and write the external timer yourself. 1. writing the script file requires a lot of debugging, script File error handling is very powerful, while crond is doing well. Low write productivity.
- #!bin/sh
- #varPath1="/var/cron/tabs"
- varPath2="/var/run"
- varPath3="/var/spool/cron/crontabs"
- #varFile="/var/cron/tabs/root"
- if[!-x"$varPath3"];then
- mkdir-p"$varPath3"
- fi
- if[!-x"$varPath2"];then
- mkdir-p"$varPath2"
- fi
- crontab-uroot/qianbo/crontab1
- crond
- #if[-f"$varFile"];then
- #rm-rf"$varFile"
- #fi
Note that many tests cannot be started because the directory structure after the cropping is not the default one, and some directories are lost. Some applications cannot find the directories and rules, so an error occurs and exit. The above is the introduction of Linux crond.
- Allows you to use the Linux operating system to accelerate remote logon.
- Easily solve grub errors in Linux
- A Brief Introduction to Linux rescue
- Load average Load in Linux
- Slab allocator in Linux