develooper Front page | perl.par | Postings from February 2005

Re: -d switch erroring out on Windows XP

Thread Previous | Thread Next
From:
Robert
Date:
February 8, 2005 05:21
Subject:
Re: -d switch erroring out on Windows XP
Message ID:
20050208132048.20382.qmail@lists.develooper.com
"Alan Stewart" <astewart1@cox.net> wrote in message 
news:4207B4EF.5164.10D255@localhost...
> 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 => 'bhicks@osc.uscg.mil',
>> };
>>
>> $sender->MailMsg(
>>     {
>>         to      => 'bhicks@osc.uscg.mil',
>>         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. 



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About