bash脚本执行顺序
发布时间:2020-12-15 21:21:03 所属栏目:安全 来源:网络整理
导读:bash脚本中的行是按顺序执行的吗?我没有看到任何原因,但我真的是新手bash脚本,我有一些需要按顺序执行的命令. 例如: #!/bin/sh# will this get finished before the next command starts?./someLongCommand1 arg1./someLongCommand2 arg1 解决方法 是的…
bash脚本中的行是按顺序执行的吗?我没有看到任何原因,但我真的是新手bash脚本,我有一些需要按顺序执行的命令.
例如: #!/bin/sh # will this get finished before the next command starts? ./someLongCommand1 arg1 ./someLongCommand2 arg1 解决方法
是的…除非您不想在后台运行其中一个命令,否则将在下一个命令启动之前完成.
(编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |