LINUX.IE, website of the Irish Linux Users' Group
Tux rules!

   
Home
New Users
Articles
Download
Projects
Community
Vendors

  Print Version
Email to...
 
Archives:


planetILUG

Recent News

News Archive


Join the
ILUG
on FaceBook


Join the
ILUG
on LinkedIn


Join the
ILUG SETI
Group



















 
 :: Mailing Lists

[ILUG] Running command after login.

[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
Read this without the formatting.
                                                                                                    

 

Hosted by HEAnet


Maintained by the ILUG website team. The aim of Linux.ie is to support and help commercial and private users of Linux in Ireland. You can display ILUG news in your own webpages, read backend information to find out how. Networking services kindly provided by HEAnet, server kindly donated by Dell. Linux is a trademark of Linus Torvalds, used with permission. No penguins were harmed in the production or maintenance of this highly praised website. Looking for the Indian Linux Users' Group? Try here. If you've read all this and aren't a lawyer: you should be!
RSS Version
Powered by Dell