AIX下做定时任务注意事项
AIX下做定时任务注意事项
AIX定时任务和Linux是一样的,都是用crontab去做。那我们这里就讲解一下crontab的基本语法:
minute hour day month dayofweek command
例如:
00 * * * * sh test.sh
那么就是每个小时的整点执行这个脚本
00 10 * * * sh test.sh
就是每天10点执行
这个没有太多好说的,度娘上一堆解释
关键是aix中要想定时任务可以执行,必须在sh脚本中开头加入. ~/.profile,例如,我这里有个脚本是执行删除rman的归档日志,内容如下:
. ~/.profile
rman target / log=/arch/rman_shell/arch_del.log cmdfile=/arch/rman_shell/arch_de
l.txt
Linux中利用crontab创建计划任务
Linux中用crontab例行工作安排
Linux crontab不执行问题排查
Ubuntu使用crontab定时任务
Linux计划任务(at batch crontab anacron)
本文永久更新链接地址:
评论暂时关闭