mirror of
https://github.com/duncs/clusterssh.git
synced 2025-07-03 18:03:23 +00:00
Add in 'EXAMPLES' section to documentation
This commit is contained in:
parent
f9068cba2b
commit
b68e413315
2 changed files with 36 additions and 1 deletions
|
@ -3,6 +3,7 @@
|
||||||
* Add patch from David F. Skoll for adding colour to terminals
|
* Add patch from David F. Skoll for adding colour to terminals
|
||||||
* Apply fix from Bogdan Pintea for DNS failing to resolve IPs
|
* Apply fix from Bogdan Pintea for DNS failing to resolve IPs
|
||||||
* Allow the configuration files to be symlinks (debian bug 518196)
|
* Allow the configuration files to be symlinks (debian bug 518196)
|
||||||
|
* Add an 'EXAMPLES' section to the cssh documentation
|
||||||
|
|
||||||
2008-11-14 Duncan Ferguson <duncan_ferguson@user.sf.net> - v3.24-1
|
2008-11-14 Duncan Ferguson <duncan_ferguson@user.sf.net> - v3.24-1
|
||||||
|
|
||||||
|
|
|
@ -242,7 +242,7 @@ sub load_config_defaults() {
|
||||||
sub parse_config_file($) {
|
sub parse_config_file($) {
|
||||||
my $config_file = shift;
|
my $config_file = shift;
|
||||||
logmsg( 2, "Reading in from config file $config_file" );
|
logmsg( 2, "Reading in from config file $config_file" );
|
||||||
return if ( !-e $config_file !-r $config_file );
|
return if ( !-e $config_file || !-r $config_file );
|
||||||
|
|
||||||
open( CFG, $config_file ) or die("Couldnt open $config_file: $!");
|
open( CFG, $config_file ) or die("Couldnt open $config_file: $!");
|
||||||
while (<CFG>) {
|
while (<CFG>) {
|
||||||
|
@ -2190,6 +2190,40 @@ Retile all the client windows
|
||||||
|
|
||||||
=back
|
=back
|
||||||
|
|
||||||
|
=head1 EXAMPLES
|
||||||
|
|
||||||
|
=over
|
||||||
|
|
||||||
|
=item Open up a session to 3 servers
|
||||||
|
|
||||||
|
S<$ cssh server1 server2 server3>
|
||||||
|
|
||||||
|
=item Open up a session to a cluster of servers identified by the tag 'farm1'
|
||||||
|
and give the controlling window a specific title, where the cluster is defined
|
||||||
|
in one of the default configuration files
|
||||||
|
|
||||||
|
S<$ cssh -T 'Web Farm Cluster 1' farm1>
|
||||||
|
|
||||||
|
=item Connect to different servers using different login names. NOTE: this can
|
||||||
|
also be achieved by setting up appropriate options in the F<.ssh/config> file.
|
||||||
|
Do not close cssh when last terminal exits.
|
||||||
|
|
||||||
|
S<$ cssh -Q user1@server1 admin@server2>
|
||||||
|
|
||||||
|
=item Open up a cluster defined in a non-default configuration file
|
||||||
|
|
||||||
|
S<$ cssh -c $HOME/cssh.config db_cluster>
|
||||||
|
|
||||||
|
=item Use telnet instead of ssh
|
||||||
|
|
||||||
|
S<$ ctel server1 server2 >
|
||||||
|
|
||||||
|
=item Use rsh instead of ssh
|
||||||
|
|
||||||
|
S<$ crsh server1 server2 >
|
||||||
|
|
||||||
|
=back
|
||||||
|
|
||||||
=head1 FILES
|
=head1 FILES
|
||||||
|
|
||||||
=over
|
=over
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue