Commit graph

147 commits

Author SHA1 Message Date
azenet
3e3ed2c1cc fix missing $self in call to read_ssh_file 2017-03-15 13:17:33 +01:00
azenet
f9c6120477 add support for .ssh/config include directive 2017-03-14 13:43:12 +01:00
Duncan Ferguson
4266c2a06e Allow terminal positioning algorithm to be configurable
Previous change "Take into account WM decorations when tiling (Github pull
request #66) (thanks to Andrew Stevenson)" has caused problems on some
systems but improved tiling on others, so make the algorithm configurable
to use the original one (default) or the new style.

To be revisited when all the window handling code is moved into a separate
module
2017-03-07 22:01:27 +00:00
Duncan Ferguson
60d67f911b Fix for perltidy tests 2017-03-04 18:36:44 +00:00
Duncan Ferguson
0fb0ba10c2 Fix more problems with debugging 2017-03-04 11:36:27 +00:00
Duncan Ferguson
be418fa0d0 Correct option used 2017-03-04 11:11:35 +00:00
Duncan Ferguson
bc7805ca4c Update copyright year 2017-03-04 11:05:20 +00:00
Duncan Ferguson
41fe0714b5 Fix a logic bug around --debug option handling
the Base.pm debug method was being overridden within Getopt.pm when all
command line options are turned into accessors.  Since this is done on the
fly there is no compiler warning generated for it.

Also renamed a method in base from 'output' to 'stdout_output' as two objects
had the same method name - Getopt::output and Base::output
2017-03-03 22:52:32 +00:00
Duncan Ferguson
067bab1894 Add in 'unique_servers' into the config file
This was missed previously and should have been there

Github issue #70
2016-10-18 21:23:15 +01:00
Duncan Ferguson
7974687cfb Option to hide console menubar
Add option in the config file to hide the menu (Github issue #69)
2016-09-07 09:25:44 +01:00
Duncan Ferguson
7822d337f7 Fix typo in docs 2016-09-07 09:11:41 +01:00
Duncan Ferguson
c83e9e785f Use perltidy 2016-05-01 09:45:41 +01:00
Duncan Ferguson
b72b748eff Fix build and test on perl-5.8.9 2016-05-01 09:24:14 +01:00
Duncan Ferguson
08adb3766b Fix File::Glob::bsd_glob use on 5.14.4
Perl 5.14.4 did not export bsd_glob - you have to call it from the module explitly.  This makes the code more backwards compatible with perl versions.
2016-04-30 10:22:06 +01:00
Duncan Ferguson
33fa9b9911 Document Range module methods 2016-04-30 09:06:16 +01:00
Duncan Ferguson
8b8a692b6c Rework hostname expansion
Didn't like relying on the bash shell for expansions - instead recoded it to be pure-perl so it is more cross-platform.

Github issue #53
2016-04-29 18:33:50 +01:00
Duncan Ferguson
454f30978d Fixed tests on systems where bash is not /bin/bash
Some systems, such as BSD, have bash stored in /usr/local/bin

Remove the assumption that bash is /bin/bash

Github issue #60
2016-04-08 21:00:20 +01:00
Andrew
ceda2524cf Add POD docs for expand_filename 2016-03-16 12:56:25 +01:00
Andrew
1c6a709f3a Apply style guidelines 2016-03-16 12:53:15 +01:00
Andrew
6b752e583b Expand ~ and $HOME when looking for files 2016-03-08 18:43:59 +01:00
Duncan Ferguson
b330457f99 Add in bash expansions on hostnames
Allow hostnames to be expanded using bash where a { is in the host name definition

Github issue #53
2016-02-13 08:48:20 +00:00
Duncan Ferguson
c5c2c4fc0e Fix option and configuration for 'extra_tag_file'
Option was documented but did not work correctly.

Github issue #51
2016-01-23 17:02:52 +00:00
Duncan Ferguson
7e55006acd Merge branch 'master' of github.com:duncs/clusterssh 2015-12-07 16:32:50 +00:00
tony mancill
41162764c2 correct typo in manpage 2015-12-03 22:17:02 -08:00
Duncan Ferguson
1a103722f3 Failure to find terminal binary should not be fatal
This will allow the initial build to complete without issue so that the user can install the appropriate terminal, or set the correct config, after installation.

Warnings will be displayed when the program is used.
2015-12-03 21:58:32 +00:00
Duncan Ferguson
7706fdc45e Amend key_quit from 'Control-q' to 'Alt-q'
This is to remove a long-standing conflict with 'Control-s/Control-q'

Github issue #50
2015-11-26 08:55:18 +00:00
Duncan Ferguson
fb475e27f4 Alter behaviour of --list option
--list now takes optional arg of a tag.  If tag is provided then it will output hosts linked to that tag.  If no tag is provided then list available tags (as now).

Also tied in with --quiet|-Q option.  If -Q provided then 'headers' are not output and data is printed on one line for easier parsing by other scripts.
2015-11-15 22:53:04 +00:00
Duncan Ferguson
96c73a0080 Add in csftp command 2015-11-15 22:17:29 +00:00
Duncan Ferguson
54499686bf Perltidied 2015-11-15 22:05:14 +00:00
Duncan Ferguson
e87192db9b Add in --quiet | -Q option
Add new option to reduce output in certain scenarios
2015-11-15 21:59:40 +00:00
Duncan Ferguson
43d4f1d246 Remove 'terminal_chdir' code
Code previously added did not work as intended, so removed as it was unnecessary.

Leave in macro substitution for '--action' though as this resolves Github issue #42.

Rework wording in Changes file
2015-11-15 21:12:10 +00:00
Duncan Ferguson
91a2b70b33 Correct typo and perltidy 2015-11-09 23:04:09 +00:00
Duncan Ferguson
1a3d5495d6 Terminal path documentation 2015-11-09 23:00:23 +00:00
Duncan Ferguson
ffe6a9d283 Add config to allow terminals to run in given dir
Add in terminal_chdir and terminal_chdir_path so that when terminals start they are run in a specific directory.

Documentation to be added.

Github issue #42
2015-11-09 22:46:02 +00:00
Duncan Ferguson
5e8f1b1166 Perltidy to pass the test 2015-11-03 20:59:18 +00:00
Duncan Ferguson
c0f2b8af41 Update copyright year 2015-10-01 18:15:51 +01:00
Duncan Ferguson
1d492e3ba2 Minor doc corrections 2015-10-01 18:15:01 +01:00
Duncan Ferguson
94d3bca20e Merge pull request #43 from mperry2/move_send_menu
Move send menu file to $HOME/.clusterssh directory
2015-10-01 07:32:55 +01:00
Duncan Ferguson
e1df115736 Add docs for use_natural_sort 2015-09-30 18:03:05 +01:00
Duncan Ferguson
efcc12e1d5 Remove unnecessary code 2015-09-30 17:37:24 +01:00
Matt Perry
dda4297711 Move send menu file to $HOME/.clusterssh directory
Move send menu file from $HOME/.csshrc_send_menu to $HOME/.clusterssh
directory.
2015-09-26 09:25:52 -07:00
Andrew Stevenson
ed49237f52 Support natural sorting for the order of hosts
Both window order and order in the hosts menu

Fixes #24
2015-03-23 13:10:35 +01:00
Duncan Ferguson
9b21aaaa61 Fix case when the terminal isn't installed
Fix the case when the configured terminal isn't actually on the system.  Alert for the problem rather than attempt to continue and hang.
2014-12-12 17:18:19 +00:00
Duncan Ferguson
f8ed9da353 Ensure code is run through 'perltidy -pbp -nst -nse' 2014-09-19 23:33:08 +01:00
Duncan Ferguson
8aaea928d7 Ensure ssh_args in config file is honored
Because the default value is defined for --options parameter, the config file value was always overwritten

Only use --options if config file option is not defined and --options is not the default value
2014-09-19 23:01:41 +01:00
Duncan Ferguson
f88353d3dd Fix behaviour when no cluster command defined
Also tidyup output to 'cssh -L' when no external clusters defined
2014-08-10 10:37:34 +01:00
Duncan Ferguson
72668c128f Fix printing of correct version with '-v' 2014-07-09 20:28:52 +01:00
Duncan Ferguson
d7d9f83b15 Correct ctel pod
Amend references to ssh in the pod to be either the comms binary (telnet, rsh) or more generic wording
2014-07-05 23:26:06 +01:00
Duncan Ferguson
085803c328 List external clusters
List on command line (cssh -L) and in 'add host' dialogue in GUI
2014-07-05 20:26:44 +01:00
Duncan Ferguson
c6747288d5 Improve test coverage 2014-07-04 21:41:52 +01:00