ssh - how do I run multiple programs on different machines at same time? -


i have 12 computers cluster , have java program(the same) on each one, want run these programs @ same time, how can this?

i can copy (scp) files 1 computer via ssh like

#!/bin/bash scp /route1/file1 user@computerx:/route2$ scp /route1/file1 user@computery:/route2$ 

so wondering if can done run programs have on each computer

you can run commands via

#!/bin/bash     ssh user@host1 <command> ssh user@host2 <command> 

you need use key based auth avoid entering password when script runs.

alternatively take @ fabric neat way of controlling multiple hosts.


Comments

Popular posts from this blog

apache - Add omitted ? to URLs -

redirect - bbPress Forum - rewrite to wwww.mysite prohibits login -

php - How can I stop spam on my custom forum/blog? -