[ILUG] Running command after login.

Gavin McCullagh gavin at fiachra.ucd.ie
Thu Sep 27 12:27:00 IST 2001


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






More information about the ILUG mailing list