erlug
[Top] [All Lists]

Re: [Erlug] many hosts? ssh launcher by sgala:)

To: erlug@xxxxxxxxxxxxxx
Subject: Re: [Erlug] many hosts? ssh launcher by sgala:)
From: Andrea Paolini <ap@xxxxxxx>
Date: Wed, 4 Aug 2004 14:05:59 +0200
On Wed 2004-08-04 at 09:08:54 +0200, Vladimir Nicola Chersi wrote:

> interessante e carino.
> propongo alcune modifiche: 

Ispirato dal sommo sgala, ho buttato giù una boiata del genere.
Faccio una crocetta di fianco agli host che mi interessano e mi
apre N xterm con le sessioni.

It works for me.

#!/bin/sh

# inspired by Sgala
# (c) 2004 Andrea Paolini <ap at nuxi dot it>

DESTS="\
 root@xxxxxxxxxxxxxxx\
 root@xxxxxxxxxxxxxxx\
 ap@xxxxxxxxxxxxxxx\
"

XPARMS='-sl 200 -fn -*-fixed-medium-r-normal-*-18-*-*-*-*-*-iso8859-1 -bg 
gray90'

for h in $DESTS ; do
  ALLDESTS="$ALLDESTS $h . O"
done

SELHST=$(dialog --separate-output --stdout --title "SSH selector" --checklist 
"ssh to:" 20 61 14 $ALLDESTS)

clear
echo opening sessions to $SELHST

for h in $SELHST ; do
  xterm $XPARMS -e ssh $h &
done
## EOF

        - ap

<Prev in Thread] Current Thread [Next in Thread>