Thursday, September 11. 2008Start multiple ssh sessions with KDE konsoleComments
Display comments as
(Linear | Threaded)
Reinvent the wheel? I know, you are using Debian. But why not dsh for such a task? Quote from apt-cache show dsh: Description: dancer's shell, or distributed shell Executes specified command on a group of computers using remote shell methods such as rsh or ssh. This tool is handy for administration of PC clusters, and multiple hosts. Comments ()
Most of the time i do interactive work on the remote machines. dsh would be no help here. With konsole i get a tab for each server and in addition i can switch between tabs by hitting shift+ or shift+. That's handy. The ability to start commands like "apt-get update" on all servers is just an additional feature. If you don't add a command you just get a interactive shell. I also know about cluster ssh but this tool is only useful if all machines are 100% identical. Comments ()
try replace sleep 2 by this line: while [ `dcop $konsole $newsession sessionPID` -eq 0 ]; do sleep 0.1 done and i also suggest to add -t argument to ssh, this forces ssh to allocate tty and you could pass a command 'apt-get upgrade; bash -i' and end up with normally operating bash surviving ctrl-c Comments ()
# start a new konsole window and save the handle in $konsole konsole=$(dcopstart konsole-script) what is this "konsole-script". What is stored in konsole. -logu Comments ()
"konsole-script" is a "dcopstart" option and opens a new "Konsole" window. $konsole stores the reference to the newly opened window which can be used in subsequenc "dcop" calls. Comments ()
Why? Does this provide better functionality for my scripts? Does this fix any of the problems in my posting? Is gnome-terminal controllable with dcop or dbus? Is gnome-terminal even well integrated into KDE? I don't think so. So can you please provide some hints, why i should switch the terminal program? Comments ()
|
QuicksearchBlog AdministrationPostgreSQL BuchCalendar
UBERWACH!BookmarksCategoriesLast SearchStatisticsLast entry: 2012-03-30 22:56
847 entries written
532 comments have been made
8739 visitor(s) this month
153 visitor(s) today
153 visitor(s) this week
0 visitor(s) online
Top Refererswww.google.de (6091)
www.google.com (3846) planete.postgresql.fr (3033) www.postgresql.org (2943) planet.postgresql.org (1601) google.com (1583) ads.wars-nicht.de (1504) ak-zensur.de (1358) www.planetpostgresql.org (976) image.youdao.com (949) Recent Entries
Once upon a timeOne year ago ...
Sat, 21.05.2011 05:39"PGCon 2011 - Second day" Archives |
|||||||||||||||||||||||||||||||||||||||||||||||||
I have to manage some Serendipity (s9y) installations. Only one of them is my personal blog, the others are customer installations, all on different servers. Apart from new serendipity versions there's also the problem with updated plugins. How can one Comments ()
Tracked: Sep 13, 19:56
Comments ()
Tracked: Feb 14, 15:24