gj2666 has asked for the wisdom of the Perl Monks concerning the following question:
I know that the open is in one (session/stream/fork/process?) and that as soon as it returns, all the environment it has just set is lost. I did the "system(set)" to confirm that point.if ($pvob eq "XYZ"){...} else { open("..\\abc-env\\setenv.cmd"); system(set); system("gradle"); ...}
I understand what open() or system() etc. is doing, but I've never really understood how to work with the configuration of such a temporary environment. The env is set for each build target so setting it at the os level doesn't really work for me in this case.
Any suggestions for getting the env variables to be persistent from within the build script would be appreciated.
(Or I suppose, help with syntax on stringing together the commands in the same open()?). This script has never worked for this app. (btw first thing I did was put in use strict and warnings so if you've taught me nothing, you've taught me that.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: config env script help building gradle from perl script (system/open tips needed)
by Corion (Patriarch) on Jun 11, 2013 at 17:11 UTC | |
by gj2666 (Beadle) on Jun 11, 2013 at 18:07 UTC | |
by Corion (Patriarch) on Jun 11, 2013 at 18:55 UTC | |
by gj2666 (Beadle) on Jun 13, 2013 at 15:37 UTC | |
|
Re: config env script help building gradle from perl script (system/open tips needed)
by BrowserUk (Patriarch) on Jun 11, 2013 at 23:35 UTC | |
by gj2666 (Beadle) on Jun 13, 2013 at 15:58 UTC |