Quick: Unix shell scripts, which sets environment vars
Ole Hansen, ScanConsult
oh@scanconsult.dk
Thu, 21 Aug 2003 12:09:42 +0200
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 =