"Alan Stewart" <[EMAIL PROTECTED]> wrote in message 
news:[EMAIL PROTECTED]
> On 7 Feb 2005 at 10:27, Robert wrote:
>
>> Here is the script:
>>
>> use strict;
>> use warnings;
>> use Mail::Sender;
>>
>> # run the program
>> my @run1 = ( "M:\\Program Files\\Mincom\\MIMS Open
>> Enterprise\\5.2.3.2\\bin\\msqupd.exe ", "ellprd" );
>> my @run2 = ( "M:\\Program Files\\Mincom\\MIMS Open
>> Enterprise\\5.2.3.2\\bin\\msqupd.exe ", "elltst" );
>>
>> print "==================================\n";
>> print " Running popup updates for ELLPRD \n";
>> print "==================================\n\n";
>> system(@run1);
>>
>> print "==================================\n";
>> print " Running popup updates for ELLTST \n";
>> print "==================================\n";
>> system(@run2);
>>
>> my $file = "M:\\Program Files\\Mincom\\ParadoxMaster\\msqupd.log";
>> my $uname = $ENV{'COMPUTERNAME'};
>> my $text;
>>
>> {
>>     open FILE, $file || die "Ooops $!";
>>     local $/;    # slurp mode, local only
>>     $text = <FILE>;
>>     close FILE;
>> }
>>
>> my $sender = new Mail::Sender {
>>     smtp => 'mailout.uscg.mil',
>>     from => '[EMAIL PROTECTED]',
>> };
>>
>> $sender->MailMsg(
>>     {
>>         to      => '[EMAIL PROTECTED]',
>>         subject => "$uname: Nightly Popups Report",
>>         msg     => $text,
>>     }
>> );
>>
>> my $timestamp = time;
>> rename( $file, "$file." . $timestamp ) || die "Couldn't rename: $!";
>>
>>
>
> I pasted this to a file "t.pl and ran:
>
> pp -d -o t.exe t.pl
>
> and pp did not bomb. Activestate 5.6.4 and PAR 0.87. Of course I can't run 
> t.exe
> without all the other pieces. This isn't a very minimal example of failure 
> :(
>
> I would suggest deleting all the PAR pieces and re-installing PAR 0.87. I 
> have had
> executables not run because of -d, but I have never had pp itself bomb 
> because of -d,
> so I am guessing your PAR install is messed up.
>
> Alan Stewart
>
>
I did do that and it is the same. I am using 5.8.6 from AS. I guess I will 
just not worry about this now and not use the -d switch. 


Reply via email to