Quick: Unix shell scripts, which sets environment vars
Rohde Dirk
Dirk.Rohde@vpgroup.com
Thu, 21 Aug 2003 08:41:18 -0700
I'm not sure what is causing the error (check your file protection), but I
believe that Quick starts a child process for any "run command" procedure.
Thus, even if you are able to "dot" a script, you would still lose the
environment variables upon return. The solution is to either use the
"setsystemval" command or to set and export your environment variables
before starting Quick.
-----Original Message-----
From: Ole Hansen, ScanConsult [mailto:oh@scanconsult.dk]
Sent: Thursday, August 21, 2003 3:10 AM
To: powerh-l@lists.swau.edu
Subject: Quick: Unix shell scripts, which sets environment vars
Hi all,
I need to execute a shell script from Quick, and retrieve the environment
variables, set by the script.
The script works and the variables is set in the calling process when run
manually from the shell with a dot preceeding the scriptname (.
<scriptname>) but when I try from Quick using RUN COMMAND ". <scriptname>"
it fails with an exit status of 126.
It is the leading dot, that causes the error because when I try RUN COMMAND
"<scriptname>", I get no errors - but the environment variables set by the
script are of course not available to GETSYSTEMVAL afterwards.
So I guess that my problem can be re-phrased to: How does one execute a
shell command from Quick using the same shell instance as Quick runs in?
Any help will be highly appreciated.
Mange hilsner / With kind regards
Ole Hansen
===========================================================
E-mail: oh@scanconsult.dk Cell Phone: +45 4040 1150
===========================================================
ScanConsult IT-Partners ApS Voice : +45 8738 7474
Jegstrupvej 96A Fax : +45 8738 7475
DK-8361 Hasselager Support : support@scanconsult.dk
Denmark Sales : sales@scanconsult.dk
http://www.scanconsult.dk
= ParaSuite : A Suite of Air Cargo Handling solutions =
= ParaSafe : A Suite of IT-Security solutions =
= Partners : Hewlett-Packard, Cognos, Microsoft and more =
= = = = = = = = = = = = = = = = = = = = = = = = = = = =
Mailing list: powerh-l@lists.swau.edu
Subscribe: "subscribe" in message body to powerh-l-request@lists.swau.edu
Unsubscribe: "unsubscribe <password>" in message body to
powerh-l-request@lists.swau.edu
http://lists.swau.edu/mailman/listinfo/powerh-l
This list is closed, thus to post to the list you must be a subscriber.