[ILUG] Running command after login.

Liam Bedford lbedford at lbedford.org
Thu Sep 27 12:10:41 IST 2001


On Thu, Sep 27, 2001 at 12:02:13PM +0100, Gavin McCullagh came forth with:
> On Thu, 27 Sep 2001, Liam Bedford wrote:
> 
> > On Thu, Sep 27, 2001 at 11:53:24AM +0100, Aherne Peter-pahern02 came forth with:
> > > Hi,
> > > 
> > > case 2
> > >  login to server2; run this2
> > > etc....
> > > 
> > any possibility of having a script like:
> > 
> > #!/bin/sh
> > command1
> > command2
> > exec bash -i --login
> 
> I would've expected from the things said above we'd need:
> 
sorry, I wasn't explicit enough, I was thinking of a different script for
each machine. (so the case statement would be

case machine1)
	rsh machine1 script1
	;;
case machine2)
	rsh machine2 script2
	;;

L.
-- 
     dBP   dBBBBb | If you're looking at me to be an accountant
              dBP | Then you will look but you will never see
   dBP    dBBBK'  | If you're looking at me to start having babies
  dBP    dB' db   | Then you can wish because I'm not here to fool around
 dBBBBP dBBBBP'   | Belle & Sebastian (Family Tree)




More information about the ILUG mailing list