ZKX's LAB

shell脚本 重复执行命令

2021-04-25知识10

如何在shell脚本中同时执行两个命令,求助 可以把多个命令放到后台执行,然后用wait等待执行完成,你可以参考一下这个博文shell脚本的并发

用shell写一个脚本按日期循环执行某一条命令怎么写 [$?eq 0]&echo '成功'|echo '失败4102'[root@centos~1653]#lsanaconda-ks.cfg install.log install.log.syslog rpmbuild[root@centos~]#[$?eq 0]&echo '成功'|echo '失败'成功[root@centos~]#lsssbash:lsss:command not found[root@centos~]#[$?eq 0]&echo '成功'|echo '失败'失败[root@centos~]#

如何执行shell脚本其中一条命令 方法一:切换到shell脚本所在的目录(此时,称为工作目录)执行shell脚本:复制代码代码如下:cd/data/shell./hello.sh./的意思是说在当前的工作目录下执行hello.sh。。

#shell脚本 重复执行命令

随机阅读

qrcode
访问手机版