In Linux, which file is written by crontab-e edit the generated timer task

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.