From: Bright, Frank (FBright@UARTS.EDU)
Date: Fri Nov 21 2003 - 14:33:44 EST
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
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 22:17:22 EDT