Linux 任务计划 crontab -e 编辑任务计划 crontab -r 删除任务计划 crontab -l 查看任务计划。
52 16 * * 0-6 ./backup.sh
52代表分钟 16 代表小时 * 天 * 月 0-6 代表周日-周六 就每天执行这个任务。
rq=`date '+%Y%m%d%H%M'`
su - oracle -c "exp procity_xmjp/US_211xm owner=procity_xmjp file=/ylx/DB_XM/xmjp/xmjp_$rq.dmp"
52 16 * * 0-6 ./backup.sh
52代表分钟 16 代表小时 * 天 * 月 0-6 代表周日-周六 就每天执行这个任务。
rq=`date '+%Y%m%d%H%M'`
su - oracle -c "exp procity_xmjp/US_211xm owner=procity_xmjp file=/ylx/DB_XM/xmjp/xmjp_$rq.dmp"
本文深入解析Linux系统中crontab命令的使用技巧,包括crontab-e编辑任务计划、crontab-r删除任务计划、crontab-l查看任务计划等功能。通过实例演示如何配置定时任务,实现自动化脚本执行,提高系统管理效率。
4596

被折叠的 条评论
为什么被折叠?



