Re: [ILUG] Running command after login.

From: Liam Bedford (lbedford at domain lbedford.org)
Date: Thu 27 Sep 2001 - 12:00:05 IST


On Thu, Sep 27, 2001 at 11:53:24AM +0100, Aherne Peter-pahern02 came forth with:
> Hi,
>
> Ok, say I have a script, user runs script there is an option of servers to log into, they select a server, the script then does the login but I still want to run things for this user on the other server without having to get every user to edit there respective .login files or whatever. So what I basically have is a case.
>
> case 1
> login to server1; run this
> case 2
> login to server2; run this2
> etc....
>
any possibility of having a script like:

#!/bin/sh
command1
command2
exec bash -i --login

?

(I haven't check that, but it might work :))

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)


This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:12:19 GMT