shell 执行顺序
发布时间:2020-12-15 09:20:03 所属栏目:安全 来源:网络整理
导读:650) this.width=650;" src="http://img.jb51.cc/vcimg/static/loading.png" height="142" width="192" alt="wKiom1cGe1ui4oqIAABm6P93Pb8114.jpg" src="http://s3.51cto.com/wyfs02/M00/7E/AC/wKiom1cGe1ui4oqIAABm6P93Pb8114.jpg"> shell script 到今天,
shell script 到今天,我还只能一个劲顺序执行,尝试探索下其更加强大的功能。
[view@payqa2lab-shell-script]$catmain #!/bin/bash .shell1& .shell2& .shell3& echo"Shellscriptends." [view@payqa2lab-shell-script]$catshell1 #!/bin/bash for((i=0;i<3;i++));do echo"$i,Hellofile." sleep1 done 看看执行后的结果,……。(主文件执行结束后,才开始显示调用文件的内容。且,调用文件的执行顺序呈“无序”) [work@payqa2lab-shell-script]$./main Shellscriptends. 1,hellomtf [work@payqa2lab-shell-script]$1,Helloyangtao 1,hellosunny 2,hellomtf 2,Helloyangtao 3,hellosunny 3,hellomtf (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |