to shutdown a pc:
use Win32;
use Sys::Hostname;
$host = hostname;
Win32::InitiateSystemShutdown($host, "FIN", 0, 1, 0)
--- Michele Knight <[EMAIL PROTECTED]> a écrit :
> Hi all,
>
> I am trying to use the InitateSystemShutdown
> function and it lists to put in
> the "MACHINE" that you are shut
Hi,
thanks for that nice prog. It worked fine - but:
I never go a mac when I used an IP-Address (Hostnames only)
and it did only work within my LAN. In my case a wanna get
the mac of an internet user...
Do u or anyone else have a solution?
Harry
-Original Message-
From: Manfred Maier [m
- Original Message -
From: "Mundell, R. (Ronald)" <[EMAIL PROTECTED]>
To: "'Sisyphus'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 4:55 PM
Subject: RE: Help DynaLoader
> I am new to this and I have read the man page but it does not make sense.
If
> you c
---8<
whoops, there i go again. mis-read the question. time for me to go home
now.
---8<
There there, dont feel bad. I know what the problem is - its the weekend
just
a
whoops, there i go again. mis-read the question. time for me to go home
now.
> -Original Message-
> From: Toby Stuart
> Sent: Thursday, November 07, 2002 5:33 PM
> To: 'Allegakoen, Justin Devanandan'
> Cc: '[EMAIL PROTECTED]'
> Subject: RE: Search and replace
>
>
> perl -ne "s/TOTAL/T
Rajendra Babu, Praveen wrote:
Hello,
I am looking to search and replace a pattern within a file(not on command
line). That is, I have a file name within the Perl script and I need to
search for a pattern and replace the same.
Eg. search for the pattern TOTAL and replace with T.TOT
Can I do th
perl -ne "s/TOTAL/T.TOT/g; print" test.txt > test1.txt
it will pipe output into a new file called test1.txt.
granted not exactly what you wanted but *is* one line.
cheers
toby
> -Original Message-
> From: Allegakoen, Justin Devanandan
> [mailto:justin.devanandan.allegakoen@;intel.com]
8<---
I am looking to search and replace a pattern within a file(not on command
line). That is, I have a file name within the Perl script and I need to
search for a pattern and replace the same.
Eg. search for the pattern TOTAL and repl
Title: RE: Help DynaLoader
I am new to this and I have read the man page but it does not make sense. If you can point me into the right direction, please do.
Thank you
Ronald Mundell
Nedcor
BG3
881-3751(011)
083407
-Original Message-
From: Sisyphus [mailto:[EMAIL PROTECTED]]
- Original Message -
From: "Mundell, R. (Ronald)" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>;
<[EMAIL PROTECTED]>
Sent: Thursday, November 07, 2002 4:22 PM
Subject: Help DynaLoader
> Good Day All
>
>
>
> I would like to know if any of you people out there have ever used the
> DynaLoader
Good Day All
I would like to know if any of you people out there have
ever used the DynaLoader module. If so could you please help me to get it
working?
Thanks
Ronald Mundell
Nedcor
BG3
881-3751(011)
083407
Hello,
I am looking to search and replace a pattern within a file(not on command
line). That is, I have a file name within the Perl script and I need to
search for a pattern and replace the same.
Eg. search for the pattern TOTAL and replace with T.TOT
Can I do this in a single statement ? That
or use undef if its for the local machine
|> -Original Message-
|> From: [EMAIL PROTECTED]
|> [mailto:perl-win32-users-admin@;listserv.ActiveState.com]On Behalf Of
|> Peter Guzis
|> Sent: Wednesday, November 06, 2002 4:13 PM
|> To: [EMAIL PROTECTED]
|> Subject: RE: InitiateSystemShutdown
|
Win32::NodeName()
-Original Message-
From: Michele Knight [mailto:michelek@;viewcast.com]
Sent: Wednesday, November 06, 2002 1:59 PM
To: [EMAIL PROTECTED]
Subject: InitiateSystemShutdown
Hi all,
I am trying to use the InitateSystemShutdown function and it lists to put in
the "MACHINE"
Hi all,
I am trying to use the InitateSystemShutdown function and it lists to put in
the "MACHINE" that you are shutting down. Does anyone know how I can get
the current machine to put in the space?
Thanks
-Michele
___
Perl-Win32-Users mailing list
[E
Le mar 05/11/2002 à 19:44, Al Caraciolo a écrit :
Hi guys,
I'm trying to build a PERL routine that creates and formats an excel CSV
file so when it opens on the users desk top, all the columns etc. are
properly shown.
csv files do not contain any formatting information. I assume y
A MAC will only be in the ARP cache if the machine is in you local subnet, and it will
not stay there very long. If you are trying to acquire this information on a WAN that
permits NetBIOS, you can harvest it in NT/2k/XP from the NBTSTAT console command and
redirect the output back to PERL.
J
Maybe a two-part solution...use the md5 to create both a hash entry and
a record in some kind of mini-database (one table, two columns...MD5 and
URL). Then when you want to display stuff later, you look for the
associated URL from the database...lots of ways to go about this...you
can have this be
Just as a matter of interest has anybody found a way to manipulate journal
entries, and perhaps merge them between different computers?
Marty
- Original Message -
From: "Ricci, Mark" <[EMAIL PROTECTED]>
To: "Perl-Win32-Users" <[EMAIL PROTECTED]>
Sent: Wednesday, November 06, 2002 2:30
OK, I am at it again...I have a hash that I can get values out of
by using keys that are not in the output of the keys command on the hash.
(I knowIt' me! :-)
Seriously, I am thinking that I am just needing a kick in the ***, but
check this out:
In the code I have this snippet==
Thank you all for the input.
I must use a single call to add to "To" and that it that.
I will likely have to use $Bill's first method.
Bummer! ("add"ing an arrayref would be simple!)
Thank you again,
Christopher
-Original Message-
From: $Bill Luebkert [mailto:dbe@;wgn.net]
Sent: We
I am am actually storing more than 100,000 Urls, from different hosts
(I am doing a crawler, supposed to crawl big sites or small parts of web)
So removing the base would be a good idea if there was a known number of
hosts, but in my case it would be ackward.
The problem is that a URL can be 10 c
My first question is why not store the full URL in your hash?
Is this optimization of memory really important? I can see it
would be important if you are storing over 100,000 URLs, but
this seems unlikely.
If the optimization is really needed and if all of the URLs
have a common base, then you co
23 matches
Mail list logo