[Gllug] screen and ssh challenge

Peter Childs peterachilds at gmail.com
Fri Jun 8 11:33:15 UTC 2007


On 08/06/07, Chris Jones <cmsj at tenshu.net> wrote:
>
> Hey folks
>
> I've been reading around the screen docs on a quest. A quest to have ssh
> automagically set the screen title to the hostname (preferably not the
> fqdn) of the machine I am ssh'ing to.
> The reason being that I usually have over a dozen screen windows open
> and ssh'd to various places, so it becomes quite hard to remember which
> terminal I left one in.
>
> Has anyone done such a thing before, or feel like they want to take on
> the challenge of making it work? :)


Could you put a wrapper round ssh? nice bash script to change the screen
name and then start ssh....

somthing like

#!/bin/bash
screen -t $1
ssh $@

But I'm no expert in screen but would rather like to learn...

Peter.


Cheers,
> --
> Chris Jones
>   cmsj at tenshu.net
>    www.tenshu.net
> --
> Gllug mailing list  -  Gllug at gllug.org.uk
> http://lists.gllug.org.uk/mailman/listinfo/gllug
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070608/a68e97f8/attachment.html>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list