发布网友 发布时间:2022-04-23 23:44
共1个回答
热心网友 时间:2022-05-26 08:49
你写进crontab计划任务就好了,具体操作,百度linux crontab
[root@localhost ~]# cat /etc/crontab
SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/
# For details see man 4 crontabs
# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |
# * * * * * user-name command to be executed追问我想写循环语句,执行好一条之后再执行下一条,怎么样才能实现哪?
追答照着顺序写就行了