Wednesday, September 10. 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 ()
Thanks for sharing this with us.
Do you have any plans to update it for KDE4/dbus?
Comments ()
|
QuicksearchBlog AdministrationPostgreSQL BuchCalendarBookmarksCategoriesLast SearchStatisticsLast entry: 2019-12-13 17:44
972 entries written
570 comments have been made
6150 visitor(s) this month
3249757 visitor(s) this week
573 visitor(s) today
11 visitor(s) online
Top Referersprohoster.info (122445)
sex-tale.ru (49738) xxx-rasskaz.ru (47335) sunmebel.ltd.ua (45671) vk.com (31851) blogos.kz (30103) ua.tc (30015) newporno.xyz (26737) blox.ua (25371) 2dm.prohoster.info (24280) Recent Entries
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, 17:56
Comments ()
Tracked: Feb 14, 14:24