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] Daft scripting question

[ILUG] Daft scripting question

Hamilton, David (TSG C&I) david.hamilton3 at hp.com
Wed Dec 8 11:06:30 GMT 2004


D'oh.

I did say it was a daft question :-).
Thanks Padraig,

	D. 

-----Original Message-----
From: P at draigBrady.com [mailto:P at draigBrady.com] 
Sent: 08 December 2004 10:57
To: Hamilton, David (TSG C&I)
Cc: ilug
Subject: Re: [ILUG] Daft scripting question

Hamilton, David (TSG C&I) wrote:
> I am writing a script to automate server deployments where every server
> has one of four roles.
> It's not a linux box, it's a hp-ux box, but there shouldn't really be a
> difference at this level.
> I'm using /usr/bin/sh as my shell which is the posix sh.
> My problem is that when I run the following command:
> /usr/bin/read ROLE
> It takes keyboard input, but doesn't update the $ROLE variable.

I don't know what that read is, but it's the shell builtin you
probably want. A child process can never modify the enrironment
variables of it's parent.

-- 
Pádraig Brady - http://www.pixelbeat.org
--- Following generated by rotagator ---

Multiple X sessions

It is possible to open more than one "X" session  on  a single box.
As User #1 (from console) : $startx -- :0
As User #2 (from console) : $startx -- :1  ... and so on
Toggle between sessions with Ctrl+Alt+F(n) and Ctrl+Alt+F(n+1)
and so on ... where n is the first free tty (usually F7)
vnc or xnest can be handy for the same task also.
--



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