Re: [ILUG] Running command after login.

From: Gavin McCullagh (gavin at domain fiachra.ucd.ie)
Date: Thu 27 Sep 2001 - 12:27:00 IST


On Thu, 27 Sep 2001, Liam Bedford wrote:

> each machine. (so the case statement would be
>
> case machine1)
> rsh machine1 script1
> ;;
> case machine2)
> rsh machine2 script2
> ;;

Sorry I'd assumed it was an nfs shared home dir, so the login script was
the same for both machines. Peter could you be a bit more clear. You
want

        * user logs into machine_A
        * a prog to run on machine_B as his/her user

I still don't quite understand why this can't be in one of the scripts run
on login? ie a rsh from .login on machine_A? Is it too late then? Could
you just do

if machine_A
        rsh serverB --execute command
        rsh serverA
else.....

        the reverse in servers
fi

Gavin



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