in reply to Running Several Scripts on Different Hosts
scripta:
#!/bin/sh ssh user@host1.example.com script1 ssh user@host2.example.com 'script2;script3;script4'
The other scripts might be done similarly. You may need or want to use full pathnames for the scripts. You may need or want to use a .shosts file or run an ssh agent for authentication.
-sauoq "My two cents aren't worth a dime.";
|
|---|