Shell script not waiting

谁都会走 提交于 2019-12-13 19:55:49

问题


 ssh user@myserver.com<<EOF
    cd ../../my/path/
    sh runscript.sh
    wait
    cd ../../temp/path
    sh secondscript.sh
 EOF

The first script runs and asks me the questions in that script, but before i'm even able to start typing to answer them the second script starts running. From what I'm reading this shouldn't be happening even without the wait.

来源:https://stackoverflow.com/questions/22566304/shell-script-not-waiting

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!