Problem setting env variable in script
From: Bright, Frank (FBright_at_UARTS.EDU)
Date: 11/21/03
- Previous message: Renison, Rick: "Re: script backgrounds itself"
- Next in thread: John Jolet: "Re: Problem setting env variable in script"
- Maybe reply: John Jolet: "Re: Problem setting env variable in script"
- Reply: Bill Verzal: "Re: Problem setting env variable in script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 21 Nov 2003 14:33:44 -0500 To: aix-l@Princeton.EDU
Hi,
Hopefully this is a quick question. I wrote a script to set an enviornment
variable based on the $USER value. The routine does not set the variable.
Below is the case statement we are using. What is going wrong that it
would not set the env variable ALLOW_AE_UDT in this routine? What is wrong
that if I add the line to set the env var at the end it still will not work.
I am using the Korn Shell on AIX 5.2.
Thanks in Advance!!
Frank
fbright@uarts.edu
#!/usr/bin/ksh
# Trap common interrupts
#
case $USER in
#
frank)
echo 'Set to frank';
ALLOW_AE_UDT=NONE;
export ALLOW_AE_UDT;;
*)
echo 'Set to all other users'
export ALLOW_AE_UDT=ALL;;
esac
----------------------------------------------------------------------------
------------
Frank M. Bright, Jr.
Administrative Computing fbright@uarts.edu
University of the Arts (A15) www.uarts.edu
<http://www.uarts.edu/>
320 S. Broad St. 215-717-6081(w)
Philadelphia, PA 19102 215-717-6087(f)
Colleague 17.0.14 AIX 5.2.0.1 Unidata 6.03
- Previous message: Renison, Rick: "Re: script backgrounds itself"
- Next in thread: John Jolet: "Re: Problem setting env variable in script"
- Maybe reply: John Jolet: "Re: Problem setting env variable in script"
- Reply: Bill Verzal: "Re: Problem setting env variable in script"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|