如何在linux系统中编辑一个脚本,可以自动运行另一个文件夹里的所有脚本...

发布网友 发布时间: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追问我想写循环语句,执行好一条之后再执行下一条,怎么样才能实现哪?

追答照着顺序写就行了

声明声明:本网页内容为用户发布,旨在传播知识,不代表本网认同其观点,若有侵权等问题请及时与本网联系,我们将在第一时间删除处理。E-MAIL:11247931@qq.com