"net time \\machinename" Can be your local machine or a remote machine.
Kirk W. Batzer
[EMAIL PROTECTED]
-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of
Jose Guevarra
Sent: Monday, November 26, 2001 2:56 PM
To: Perl-Win32-Admin
Subject: Get time from
Time + date on the local (script) machine is easy:
time;
or, more likely useful to you: localtime(time);
perldoc -f localtime
perldoc -f time
-Peter
---
Peter A. Vogel
Manager, Configuration Management
Arsin Corporation, Professional Services
http://www.arsin.com
> -Original Message-
Hi,
Is there a way to get the time+date of the machine the script is running
on? What about time on other machines?
Thanx
___
Perl-Win32-Admin mailing list
[EMAIL PROTECTED]
http://listserv.ActiveState.com/mailman/listinfo/perl-win32-admin
Title: RE: selecting text from file
Replace
s/[^\w\s\[\]\\\:]//g;
with
chop,
chop; s/.(.)/\1/g;
seems
to retain data integrity better
as it replaces all double-byte
character with the 2nd byte.
$START =
'/^\s*\[\s*System\s+Summary\s*\]\s*$/io';$END =
Title: RE: selecting text from file
Perfect, works great, thanks.
Interwoven,
Inc.Moving Business to the WebNikko OdiseosTechnical Support
EngineerDirect Line: (408)530-7175Main Line: (408) 774-2000Email:
[EMAIL PROTECTED]Web: http://www
Title: RE: selecting text from file
Per suggestion of perlfaq ...
$START =
'/^\s*\[\s*System\s+Summary\s*\]\s*$/io';$END =
'/^\s*\[\s*Hardware\s+Resources\]\s*$/io';
open(WININFO,"c:/a.txt");
while ()
{
s/[^\w\s\[\]\\\:]//g;
next if
(/^\s*$/); $marker = 1, next if eval
Title: RE: selecting text from file
Looks
like it's in Unicode
Subject: RE: selecting text from file
Thanks guys - what you say works generally however for some reason it
fails on the output of winmsd.
.
Title: RE: selecting text from file
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 WebNikko OdiseosTech
Title: RE: selecting text from file
Do
you have to escape the ':'?
-Original Message-From: Nikko Odiseos
[mailto:[EMAIL PROTECTED]]Sent: Monday, November 26, 2001
3:21 PMTo: Gary MacDonald;
[EMAIL PROTECTED]; [EMAIL PROTECTED]Subject: RE:
selecting text from file
Thanks
Title: RE: selecting text from file
Thanks
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 c
What errors?
-Original Message-
From: Sibi John [mailto:[EMAIL PROTECTED]]
Sent: 26 November 2001 16:17
To: Perl (E-mail)
Subject:Perl ppm
hi,
i am having problems connecting to the perl repositories for some
reason. I am running version 2.1.5 with perl versio
hi,
i am having problems connecting to the perl repositories for some
reason. I am running version 2.1.5 with perl version 5.6.1. I am not
restricted by any firewalls or any such restrictions.. has anybody had
theses problems before..
'http://Jenda.Krynicky.cz/perl'.
Gary,
I get the correct result with SpiltMultis=>0 using your 2nd parsing
example:
my ($Location, $MinSize, $MaxSize) = split /[\x20\x00]/,
$MemKey->GetValue('PagingFiles'); print "Location =
\t$Location\n";print "MinSize = \t$MinSize\n";print "MaxSize =
\t$MaxSize\n";
I noti
Gary,
Thanks for your response. I tried the second of your suggestions
without success:
my ($Location, $MinSize, $MaxSize) =
@{$MemKey->GetValue('PagingFiles')}; print "Location =
\t$Location\n";print "MinSize = \t$MinSize\n";print "MaxSize =
\t$MaxSize\n";
With "SplitMul
Philip Morley wrote:
>Does anyone know how to get rid of these error messages in the Event
>Viewer:
>
>The description for Event ID (180) in Source (HELLO_WORLD) could not be
>found. It contains the following insertion stirng(s): Hello, world.
>
>Any useful suggestions would be much appreciated.
robert lawton wrote:
> I am Currently working on a script that will read
> through a list of members in a zip file, if of type
> text will read through each byte of data using
> "readChunk(1)" appending the data to a string until
> the end of line is encountered, Uuon which it will
> then do a co
I am Currently working on a script that will read
through a list of members in a zip file, if of type
text will read through each byte of data using
readChunk(1) appending the data to a string until
the end of line is encountered, Uuon which it will
then do a compare.
The problem arises in loc
17 matches
Mail list logo