bash - ssh wait for script to finish -


i using following script start process on node. main node:

for dir  in  n9 n18 n27 n40  node=compute-2-10  ssh $node "cd $dir ; nohup ./process.sh >  watchdog-$dir &"  done 

the thing when connect compute-2-10 see no jobs running. think problem process can not completed since bash doesn't wait finish. correct or need else?

i have been using like

ssh $node "nohup myprogram > prog.out 2> prog.err < /dev/null &" 

if redirect 3 i/o should not create issue.


Comments

Popular posts from this blog

java - Intellij Synchronizing output directories .. -

git - Initial Commit: "fatal: could not create leading directories of ..." -