FYI the following seems to have worked properly with the current 79_97
version.  One more thing, what are the cases where I can get screwed up with
the caching?

pp -d -o foo.exe foo.pl
pp -d -o bar.exe bar.pl

__________ foo.pl ___________
#!/usr/bin/perl -w
use Win32::Process;
#  not sure if what to set the TEMP var to.
#$ENV{PAR_GLOBAL_TEMP} = "";
#$ENV{PAR_GLOBAL_CLEAN = 1;
print "ENV: $ENV{PAR_TEMP} \n";
$envtmp = $ENV{PAR_TEMP};
delete $ENV{PAR_TEMP};
Win32::Process::Create($ProcessObj,
       "bar.exe",
       "bar",
       0,# this should make the process not inherit anything from the
process, not sure why it doesn't work.
       NORMAL_PRIORITY_CLASS,
       ".")|| die &Error;
$ENV{PAR_TEMP} = $envtmp;
print "ENV: $ENV{PAR_TEMP} \nDone\n";
___________bar.pl____________
#!/usr/bin/perl -w
print "ENV: $ENV{PAR_TEMP} \n";
print "Bar Worked\n";

-----Original Message-----
From: Jesse Schoch [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 21, 2004 8:21 PM
To: Autrijus Tang; Alan Stewart
Cc: [EMAIL PROTECTED]
Subject: RE: exec problems


I didn't see the updated archive, is it up on http://aut.dyndns.org/dist/

Also I hope I can do the following, though I can live without the -C.
pp -C -d -o foo.exe foo.pl
pp -C -d -o bar.exe bar.pl
___________ foo.pl _______________
#!/usr/bin/perl -w
use Win32::Process;
#  not sure if what to set the TEMP var to.
$ENV{PAR_GLOBAL_TEMP} = "";
$ENV{PAR_GLOBAL_CLEAN = 1;
Win32::Process::Create($ProcessObj,
       "bar.exe",
       "bar",
       0,# this should make the process not inherit anything from the
process, not sure why it doesn't work.
       NORMAL_PRIORITY_CLASS,
       ".")|| die &Error;

___________ bar.pl ________________
#!/usr/bin/perl -w
Print "WooHooo I ran!!!\n";



-----Original Message-----
From: Autrijus Tang [mailto:[EMAIL PROTECTED]
Sent: Saturday, February 21, 2004 4:26 PM
To: Alan Stewart
Cc: Autrijus Tang; [EMAIL PROTECTED]
Subject: Re: exec problems


On Sat, Feb 21, 2004 at 11:08:10AM -0800, Alan Stewart wrote:
> Attached are changes against PAR 0.79_97 to eliminate problems executing
one PAR app
> from another PAR app. Global PAR environment variables are now
PAR_GLOBAL_xxx, i.e.:
>     pp -o foo.exe foo.pl
>     set PAR_GLOBAL_CLEAN=1
>     foo.exe
> will cause foo.exe to use PAR_CLEAN=1 internally.

Thanks, applied!

Alan is now officially my personal hero. :)

Cheers,
/Autrijus/

Reply via email to