On Tuesday 03 October 2006 22:12, Mike Williams wrote:
> On Tuesday 03 October 2006 18:04, James wrote:
> > OT:  I use kde and quite a lot of konsole sessions for  admin of many
> > other systems.  I currently manually use 'rename' in kde to put the
> > system's hostname into the tab (located at the bottom of the window), for
> > quick reference. Is there a way (trick) to automatically do this?
> >
> > My prompt (command line) does this automatically, I just want the
> > hostname of the remote host(or IP address)  I ssh into to replace the
> > 'shell #' that is there by default. If not ssh'd into a remote system,
> > then the default 'shell #' is ok as the default.
>
> dcop, and a wrapper around ssh, is the only way I can think of.
>
> dcop konsole-{PID} $(dcop konsole-{PID} konsole currentSession) \
> renameSession "${HOSTNAME}"
>
> I don't however have a reliable way of figuring out the PID of the current
> konsole process.
> Or, perhaps I do. http://lists.debian.org/debian-kde/2004/04/msg00271.html

This konsolescript does what you need. Logging to remote it shows on tab 
[EMAIL PROTECTED] , on local it shows user or programm runing.

http://www.kde-apps.org/content/show.php?content=43873

m

-- 
gentoo-user@gentoo.org mailing list

Reply via email to