>
You could add this, so you don't have to edit the script every time you want to run
it.
>
>
> #!/usr/local/bin/perl
> # run input command on all machines.
>
> @machine_list=("mach1", "mach2", "mach3");
> # Will run commandline parameters as a command on each machine.
> # uname added to help separate output from different machines.
print "What command would you like to run: ";
chomp($command = <STDIN>);
>
> foreach $machine (@machine_list) {
> print "\nssh $machine $command &\n";
> system "ssh $machine $command &";
> }
>
--
Jamie Seeman
Secure Computing - Test Engineer
651.628.5420