No
because the exact script works with the exact same text file if it is copied to
another file and saved with a different name. Very
weird.
********************************************
Interwoven,
Inc.
Moving Business to the Web
Nikko Odiseos
Technical Support
Engineer
Direct Line: (408)530-7175
Main Line: (408) 774-2000
Email:
[EMAIL PROTECTED]
Web: http://www.interwoven.com
-----Original Message-----
From: Timothy Johnson [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 3:16 PM
To: 'Nikko Odiseos'; Gary MacDonald; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: selecting text from fileDo you have to escape the ':'?-----Original Message-----
From: Nikko Odiseos [mailto:[EMAIL PROTECTED]]
Sent: Monday, November 26, 2001 3:21 PM
To: Gary MacDonald; [EMAIL PROTECTED]; [EMAIL PROTECTED]
Subject: RE: selecting text from fileThanks guys - what you say works generally however for some reason it fails on the output of winmsd.But it fails on an actual file generated by winmsd - it is like the file is in another encoding or something and perl does not recognize the characters. If I copy and paste the output to a file with a different name and change the name of the file in the script, it works. What the heck is going on here?Try it:`winmsd /report c:/a.txt`;
sleep 90;
open (WININFO, "c:\\a.txt");
while (<WININFO>)
{
next unless /\[System Summary\]/;
while (<WININFO>)
{
last if /\[Hardware Resources\]/;
print;
}
last;
}
close WININFO;--------------------------------------------------------------------------------
This email may contain confidential and privileged
material for the sole use of the intended recipient.
If you are not the intended recipient, please contact
the sender and delete all copies.