Any feature requests?

78 views
Skip to first unread message

brockgr

unread,
May 31, 2010, 10:01:57 PM5/31/10
to csshX Discussion
Seems like the requests for features have died down - is there
anything left to add?

Stew

unread,
Jun 1, 2010, 4:59:37 PM6/1/10
to csshX Discussion
i would like the ability to add an optional command to specify to the
remote host.

This would be useful in the case where you want to connect to
potentially just one host multiple times and run a slightly different
command.

The format of this file might look like (mockup):

# csshX --hosts servers.txt

# cat servers.txt
root@server1 "/bin/sh script.sh 20091001"
root@server1 "/bin/sh script.sh 20091101"
root@server1 "/bin/sh script.sh 20091201"
root@server1 "/bin/sh script.sh 20100201"
root@server1 "/bin/sh script.sh 20100101"

This would almost necessitate the ability to take an input file of
hosts (one per line) with an optional quoted string -- which will be
the command run on the remote side.

user@host[:port] [command with args]


I could accomplish this today use GNU screen but it doesn't allow me
to see all the windows simultaneously of course like csshX.

What do you think? Thanks!
Message has been deleted

Gavin Brock

unread,
Jun 9, 2010, 9:14:20 AM6/9/10
to csshx-...@googlegroups.com
Stew,

Great idea!!

Took slightly longer to implement than I expected - mostly due to getting distracted :-)

A first cut at it is in svn:  http://csshx.googlecode.com/svn/trunk/csshX

This adds the "--hosts" and prerequisite "--remote_command" arguments (and equivalent csshrc options).

The file format is similar to your suggestion, but I opted to drop the double-quotes on the commands:

root@server1 /bin/sh script.sh 20091001

I assume everything after the hostname string is a command to run (and avoid having to do complicated checking for quotes in the command).

The hostname can, as you showed, contain user names or port numbers. It will also support the hostname ranges (like "server[1-9]").

Let me know how it works for you, if you have time.

Regards,

Gavin

Stewart Smith

unread,
Jun 9, 2010, 11:20:56 AM6/9/10
to csshx-...@googlegroups.com

I tried this out and it worked very well, thank you.

My only other feature suggestion at this time would be the ability to specify multiple screens to spread the Terminal windows out on.

Thank you!
--
Stew

brockgr

unread,
Jun 9, 2010, 9:22:07 PM6/9/10
to csshX Discussion
> My only other feature suggestion at this time would be the ability to
> specify multiple screens to spread the Terminal windows out on.

This has been a long-requested feature that I gave up on (you can work
around it using bounds-setting mode).

However, I decided to revisit it - I reopened the issue here:
http://code.google.com/p/csshx/issues/detail?id=18#c9

Again, there is an update in SVN to try.

Gavin
Reply all
Reply to author
Forward
0 new messages