Commit graph

126 commits

Author SHA1 Message Date
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
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
3f79f1ff54 Workaround for KDE glitch
Passing the epoch time as part of generating an event in KDE appears to cause windows to become unmoveable.  Not sending the epoch time fixes this and does not appear to have any side effects
2015-11-09 23:08:51 +00:00
Duncan Ferguson
0358721c67 Remove commented out code 2015-11-09 23:05:54 +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
3fcc001cca Bump version number to 4.04_01 2015-11-09 13:39:16 +00:00
Duncan Ferguson
4157d9f3e2 Release 4.04 2015-11-03 21:18:13 +00:00
Duncan Ferguson
c0f2b8af41 Update copyright year 2015-10-01 18:15:51 +01:00
Duncan Ferguson
153709b220 Fix ccon and ctel not working correctly
Prevent ssh options being applied on non-ssh connections.  Github issue #35
2015-09-21 22:19:22 +01:00
Duncan Ferguson
5fad534ef0 Fix perltidy tests 2015-09-21 21:07:03 +01:00
Duncan Ferguson
56d5a163df Merge branch 'master' of github.com:duncs/clusterssh 2015-05-01 20:42:06 +01:00
Duncan Ferguson
264391660d Include bash completion script in the distribution
The bash completion script was contributed some time ago by Aaron Spettl but never included.  Time to correct that...

Github issue #29
2015-05-01 20:40:06 +01: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
Andrew Stevenson
4b02448f0a Don't import Carp twice 2015-03-19 17:58:01 +01:00
Andrew
576ace2e3d Allow re-adding of previously closed sessions
Keep track of which sessions are closed and allow the user to re-add
them in one go. Useful in environments with a lot of network problems.
2015-03-19 17:53:36 +01:00
Andrew
f23821af6f Don't hardcode the number of static menu entries 2015-03-19 17:50:09 +01:00
Duncan Ferguson
c53eedaf1c Update version and changes file with patch from Andrew Stevenson 2015-01-31 10:47:30 +00:00
Andrew Stevenson
4045bb467b logmsg -> $self->debug
logmsg is no more

Fixes #20
2015-01-21 17:48:37 +00:00
Duncan Ferguson
fb4d991053 Fix some tests failures
Fix failures picked up via cpantesters
- Bump version
- Remove accidental duplicate option in test file
- Add TODO to test for duplicate options correctly
- Fix test error when @ARGV is set to undef when this should never happen
2014-12-20 18:05:08 +00:00
Duncan Ferguson
457c3e8e1c Version 4.03_04 release changes 2014-12-12 17:31:14 +00:00
Duncan Ferguson
97ec81692a Fix ordering; config needs clusters 2014-12-12 17:15:43 +00:00
Duncan Ferguson
d684b077fd Rearrange initialisation order 2014-12-12 10:25:03 +00:00
Duncan Ferguson
02942e7e24 Reduce unnecessary output
Don't show what windows are going to be opened if there are none.
2014-11-25 20:25:04 +00:00
Duncan Ferguson
12587955b2 Remove history when window closed
Thanks for patch to Bill Rushmore
2014-09-28 09:01:31 +01:00
Duncan Ferguson
f8ed9da353 Ensure code is run through 'perltidy -pbp -nst -nse' 2014-09-19 23:33:08 +01:00
Duncan Ferguson
d9446aa28a Fix Pod::Coverage test 2014-09-19 23:18:22 +01:00
Duncan Ferguson
9962aa08f8 Merge branch 'random' of https://github.com/cqexbesd/clusterssh into cqexbesd-random 2014-09-19 23:06:46 +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
a93b3f3cac Force tests to have English locale
Important when user has something else set else tests can fail

Github issue: 10

Thanks to Emanuele Tomasi
2014-09-19 22:33:33 +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
Andrew Stevenson
bc45e0cac7 Add "send random number" menu option
Add a new option in the send menu to send a random integer from 0 to
1023 to each host. This can be used to spread load across resources
or delay the activation of commands to spread load across time.

e.g. sleep $(( [random] % 10)) &&
		fetch http://srv-$(( [random] % 5 )).small.server/file
2014-07-24 16:09:44 +00:00
Duncan Ferguson
05554f1a1f Fix pod coverage test 2014-07-09 20:25:42 +01:00
Duncan Ferguson
d424b59228 Merge branch 'getopt' 2014-07-07 20:30:15 +01:00
Duncan Ferguson
ee9ec5a366 Additional host menu options
Add in 'Set all active' and 'Set half active' options.  Thanks to Andrew Stevenson
2014-07-07 20:22:32 +01:00
Duncan Ferguson
e7694e836e Correct version number 2014-07-05 23:44:16 +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
Duncan Ferguson
3e2392e9b6 Improve test coverage 2014-07-02 22:39:36 +01:00
Duncan Ferguson
858112c072 Additional pod docs 2014-06-29 12:49:37 +01:00
Duncan Ferguson
8a445a32ba Perltidy -pbp 2014-06-28 11:40:00 +01:00
Duncan Ferguson
977ae78c6f Remove references to old options variables 2014-06-28 11:39:28 +01:00
Duncan Ferguson
dbfa2733fd Move auto close and show history option processing into module 2014-06-27 18:17:22 +01:00
Duncan Ferguson
3416ab1288 Fix option name 2014-06-25 18:12:15 +01:00
Duncan Ferguson
2f9779d8f5 Move some post-processing option handling into the getopt module 2014-06-22 14:42:21 +01:00
Duncan Ferguson
36d100d62d Finish conversion from logmsg to ->debug 2014-06-21 08:30:23 +01:00
Duncan Ferguson
97884dd03e Start using config provided in getopts module 2014-06-20 15:16:41 +01:00