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.

Waider waider at dspsrv.com
Thu Sep 27 12:01:47 IST 2001


According to Aherne Peter-pahern02:
> 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....
> 
> I want to make life for the users as easy (idiot proof) as possible, essentially so they dont have to do anything or change there own accounts. 
> Hope this makes sense. 


Can't quite see what you're trying to achieve here, but how about modifying
the shell startup scripts for all users? I think csh runs /etc/login.csh or
thereabouts when you use it as a login shell, and /etc/cshrc if you're just
running an ordinary shell. Check your csh manpage to be sure.

Waider.
-- 
waider at dspsrv.com / Chances are I'm not at home right now.




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