shell 脚本中的命令是否等待完成上一个命令的执行?
Does command in shell script wait to complete execution of previous command?
我想制作 shell 脚本以在 tomcat 上部署 .WAR。因为我每次都需要构建它并且构建 war 需要一些时间。我想使用 shell 脚本完成整个过程。作为 linux 的新手,我对此不太了解。
命令 1(构建 war- 构建需要一些时间)。
命令 2(将 war 部署到 tomcat)
命令 2 是等待命令 1 执行完成还是在整个执行之前执行。
是的,命令 2 只会在命令 1 之后执行。
我想制作 shell 脚本以在 tomcat 上部署 .WAR。因为我每次都需要构建它并且构建 war 需要一些时间。我想使用 shell 脚本完成整个过程。作为 linux 的新手,我对此不太了解。
命令 1(构建 war- 构建需要一些时间)。
命令 2(将 war 部署到 tomcat)
命令 2 是等待命令 1 执行完成还是在整个执行之前执行。
是的,命令 2 只会在命令 1 之后执行。