| KWLUG | Ten SSH Tricks | #7 |
3) Run remote shell commandsYou don't have to open an interactive shell
ssh user@host command
This can be used to automate commands:
perl -e 'foreach $i (1 , 6 .. 12) {print `ssh server$i "w"`}'
|
| << Previous | Index | Next >> | Copyright © 2002 Daniel Allen |