gmjosack / gsh Goto Github PK
View Code? Open in Web Editor NEWPluggable version of Distributed Shell
License: MIT License
Pluggable version of Distributed Shell
License: MIT License
Submitted for @timdoug
I'd like the output of a run to be aligned left against the longest hostname in a group, probably up to some reasonable max.
When I suspend gsh with ^Z and come back a minute later, all of the open SSH connections have timed out per my -t setting.
Traceback (most recent call last):
File "/usr/local/lib/python2.7/site-packages/gevent-0.13.8-py2.7-linux-x86_64.egg/gevent/greenlet.py", line 390, in run
result = self._run(_self.args, *_self.kwargs)
File "/usr/local/lib/python2.7/site-packages/gsh/init.py", line 155, in _run_pre_job_hooks
hook.pre_job(self.command, self.hosts, time.time())
File "/usr/local/encap/py27-gsh-0.7/lib/python2.7/site-packages/gsh/plugins/hooks/printer_hook.py", line 14, in pre_job
self.longest_len = len(max(hosts, key=len)) + 1
ValueError: max() arg is an empty sequence
<Greenlet at 0x21d5af0: <bound method Gsh._run_pre_job_hooks of <gsh.Gsh object at 0x225bbd0>>> failed with ValueError
I was running a 'curl -s foo' across a number of hosts and the output file didn't have a newline, so curl faithfully only prints the output. This causes my gsh output to not have newlines, which makes it a little difficult to read.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.