Excuting a script from a powerhouse program by sourcing it

greig.morrison@sympatico.ca greig.morrison@sympatico.ca
Thu, 15 May 2003 8:41:07 -0400


Karen,

If you are trying to set environment variables in the same shell as you Quick screen perhaps the solution would be to use the SETSYSTEMVAL function, also see GETSYSTEMVAL. Quiz, Qtp and other processes can then access these environment variables when run from your Quick session.

example from the PowerHouse Rules manual:
> IF NOT SETSYSTEMVAL("QTP_PARMS", ("RUN" + RUN_REQ ))
> THEN ERROR "Could not set environment variable"

Cheers,
Greig


Message: 5
Date: Wed, 14 May 2003 21:45:05 -0700 (PDT)
From: "karen d'souza" <kaz_dsouza@yahoo.com>
Subject: Excuting a script from a powerhouse program by sourcing it (was: Run 
command temp.sh)
To: Darren Reely <darren.reely@latticesemi.com>
Cc: "'powerh-l@lists.swau.edu'" <powerh-l@lists.swau.edu>

--0-921749664-1052973905=:17649
Content-Type: text/plain; charset=us-ascii

Apologies for the messedup subject, will take care next time onwards.
 
> run command "temp.sh" &

Yes, this will run tem.sh, but the shell does so by forking a new process, due 
to which my exported variables from temp.sh are lost. I am trying to do `. temp.
sh', as I want to execute temp.sh in the _same_ shell. Is there a way I can run 
temp.sh in the same shell ?
 
Thanks in advance.
 
Karen.