ITPub博客

首页 > Linux操作系统 > Linux操作系统 > crontab相关文件[夹]的说明 摘自:Linux Recipes for Oracle DBAs

crontab相关文件[夹]的说明 摘自:Linux Recipes for Oracle DBAs

原创 Linux操作系统 作者:lxz3000 时间:2009-11-26 11:17:31 0 删除 编辑
file
 purpose
/etc/init.d/crond
 Starts the cron daemon in system boot.
/var/log/cron
 System messages related to the cron process. Useful for trou-
bleshooting problems.
/var/spool/cron/
 User crontab files are stored in the /var/spool/cron directory.
/etc/cron.allow
 Specifies users who can create a cron table.
/etc/cron.deny
 Specifies users who are not allowed to create a cron table.
/etc/crontab
 The system cron table that has commands to run scripts located
in the following directories: /etc/cron.hourly, /etc/cron.daily,
/etc/cron.weekly, and /etc/cron.monthly.
/etc/cron.d
 A directory that contains cron tables for jobs that need to run
on a schedule other than hourly, daily, weekly, or monthly.
/etc/cron.hourly
 Directory that contains system scripts to run on an hourly basis.
/etc/cron.daily
 Directory that contains system scripts to run on a daily basis.
/etc/cron.weekly
 Directory that contains system scripts to run on a weekly basis.
/etc/cron.monthly
 Directory that contains system scripts to run on a monthly basis.

When cron runs a script. as a user, it doesn’t run the user’s startup or login files (like .bashrc).
Therefore, any script. (being run from cron) needs to explicitly set any required variables. You
can directly set the variables within the script. or call another script. (such as Oracle’s oraenv
script) that exports these variables.

来自 “ ITPUB博客 ” ,链接:https://blog.itpub.net/10341434/viewspace-620592/ ,如需转载,请注明出处,否则将追究法律责任。

请登录后发表评论 登录
全部评论

注册时间:2008-01-13

  • 博文量
    44
  • 访问量
    92496