running a short perl script in a windows XP arena
- From: DBSMITH@xxxxxxxxxxxxxx
- Date: Wed, 28 Dec 2005 17:00:50 -0500
All,
Here is my script and it is outputting "file is not present" when it should
be outputting "temp file is good and $MHfile is there\n";
Am I missing something since I am running this is a Windows env?
thank you,
derek
#!/usr/bin/perl
use strict;
use warnings;
require 5.8.0;
$ENV{"PATH"} = qq(C:\\Documents*\\mh-hl7:C:\\Perl\\bin);
my $p= qq(--passphrase-fd 0);
my $de= qw(--decrypt);
my $outp= qw(--output);
my $MHfile= qq(C:\\Documents*\\mh-hl7\\MHFM.*);
my $pass= qq(C:\\temp\\pass.txt);
# unlink qq(C:\\Documents*\\mh-hl7\\MHFM.*);
if ( -s $MHfile ) {
print "temp file is good and $MHfile is there\n";
open (PASS, "C:\\temp\\pass.txt");
for (;<PASS>;) {
print $_;
}
}
else {
print "file not present\n";
#system ("C:\\WINDOWS\\notepad.exe C:\\temp\\pass.txt");
}
close (PASS);
Derek B. Smith
OhioHealth IT
UNIX / TSM / EDM Teams
.
- Follow-Ups:
- RE: running a short perl script in a windows XP arena
- From: Charles K. Clarkson
- RE: running a short perl script in a windows XP arena
- Prev by Date: Re: Processing a web page (or looping over a multi line string)
- Next by Date: RE: running a short perl script in a windows XP arena
- Previous by thread: Each char / letter --> array from string value
- Next by thread: RE: running a short perl script in a windows XP arena
- Index(es):
Relevant Pages
|