App-MrShell
view release on metacpan or search on metacpan
List the groups and their hosts and exit. Will use groups listed in B<-H>
switches if applicable (ignoring B<-H> arguments that are not groups).
=item B<--host> B<-H>
Names of hosts or L</[groups]> upon which to run commands. Groups are prefixed
with an C<@> character and can only be specified in the configuration file (see
L</CONFIG FILE>).
Host and group specifications that overlap are reduced to a unique set, so if
C<@localhosts> contains C<host1> and C<@desktops> contains C<host1>, and for
whatever reason C<-H host1> is also specified on the command line ... C<host1>
will only appear in the hosts list just the one time.
Hostnames may be subtracted from any lists provided (via groups or B<-H>) by
prefixing the hostname (but not group) with C<->.
For instance, if C<@hosts> contains a host named C<host1>> and C<host1>> is
unavailable, users might type something like this:
mrsh @hosts -H-host1 uptime
Hosts and host routes are space separated.
If a group contains references to other groups, it will automatically be
recursively replaced. This recursion naively assumes there are no loops, but
automatically stops about 30 deep. If you get unexpected results, this could
be the problem.
=head2 EXAMPLE CONFIG
[options]
default-hosts = @debian-desktops
shell-command = ssh -o 'BatchMode Yes' [%u]-l []%u %h
[groups]
debian-desktops = wisp corky razor
=head1 AUTHOR
Paul Miller C<< <jettero@cpan.org >>
L<http://github.com/jettero>
=head1 THANKS
Dennis Boone -- L<http://github.com/drboone>
( run in 0.609 second using v1.01-cache-2.11-cpan-299005ec8e3 )