Environment Description:
Operating System: Red Hat Enterprise Linux Server Release 6.6 (Santiago)
kernel version:2.6.32-504.el6.x86_64
Requirements Description :
General Settings Crontab timed tasks are generated by CRONTAB-E.
Then there is a question, crontab-e edit the generated content, the final is written in which file?
Operation Process:
1. For example, under Oracle users, create the following scheduled tasks
[Email protected] spool]$ CRONTAB-L*/1 * * * */home/oracle/check_ps_if_exits.sh
Note: You can view the settings of the scheduled tasks under the current user by crontab-l.
2. Through the Internet, find the content of the specific document
/var/spool/cron directory, in the specific user name file
3. View the file with an Oracle user
[Email protected] spool]$ cd/var/spool/you have new mail in/var/spool/mail/oracle[[email protected] spool]$ lsanacron
cron LPD Mail Plymouth postfix rhsm up2date[[email protected] spool]$ CD CRON/-BASH:CD: cron/: Permission denied
Note: The discovery of permissions is not enough, that is, the normal user can not enter into the cron directory.
4. Use the root user to view the file
[[email protected] cron]# pwd/var/spool/cron[[email protected] cron]# ls-ltotal 4-RW-------1 Oracle Oinstall 12 2 0:28 Oracle[[email protected] cron]# cat Oracle */1 * * * */home/oracle/check_ps_if_exits.sh
Note: Enter the cron directory by root to view the Oracle files, consistent with the content of the crontab-l output.
Summary :
Linux operating system, the crontab-l corresponding file is the/var/spool/cron directory of the specific user name file.
Document creation time: March 14, 2018 11:28:44
In Linux, which file is written by crontab-e edit the generated timer task