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:04:45 IST 2001






On Thu, 27 Sep 2001, Liam Bedford wrote:

> On Thu, Sep 27, 2001 at 11:53:24AM +0100, Aherne Peter-pahern02 came forth with:
> > Hi,
> > 
> > case 2
> >  login to server2; run this2
> > etc....
> > 
> any possibility of having a script like:
> 
> #!/bin/sh
> command1
> command2
> exec bash -i --login

I would've expected from the things said above we'd need:

if (`uname -n` == "server1") 

	command1
else 

	command2
fi

Perhaps I have the wrong end of the stick here?

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