Hi,
I am atuomating our testing infrastructure using "Testify". The scenario
is:
Testify calls a script that builds and creates the necessary dir. structure
useful to testify. During that process it is suppose to change the
directory name. I am trying to get the perl script return the new directory
name to Testify as it is required there for some other operation. Testify
plays with variables and so I was trying to modify the variable or create a
new one that can be used by testify once the perl script execution is
completed.
Thanks,
Hitesh
Paul wrote:
> --- Hitesh Ray <[EMAIL PROTECTED]> wrote:
> > I am required to modify an Environment variable from one value to
> > another using perl script. I can access the env. variables in the
> perl
> > script using ENV. How can i modify so that when I exit my perl script
> > -- the env. variable has new value.
>
> That's a tricky one.
>
> I suppose you're in a shell that supports backticks?
> Have the script print the new, desired value to STDOUT.
> Then try something like
> VAR=`script.pl`
>
> This has to be done in the environment where the variable resides.
> You can't have a process change the environment of its parent.
>
> What's the context?
> I assume it's a command-line operation, but that the script has to
> figure out what the new value is to be. If that's not the case, what
> *are* you trying to do?
>
> __________________________________________________
> Do You Yahoo!?
> Yahoo! Auctions - buy the things you want at great prices
> http://auctions.yahoo.com/