RE: Interested in thoughts on how to hand off to mirror of script on another server

2003-08-11 Thread Wiechel, Ben
You might take advantage of any of the Perl modules that provide access to
the Scheduler and use that to schedule the task on the other machine.  The
other machine could then watch the primary box and when it comes back up
self-terminate.

--
Benjamin D. Wiechel
Xerox Global Services, Inc.
[EMAIL PROTECTED]


-Original Message-
From: Gary Nielson [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, August 05, 2003 2:25 PM
To: [EMAIL PROTECTED]
Subject: Interested in thoughts on how to hand off to mirror of script on
another server


I have a script that I would like to run no matter what during the day. Of
course, if there's a power outage or storm, equipment or network problems,
that script isn't *always* going to run. Since my computer is on a UPS, I am
thinking that somehow I would be able to find out when the server is
shutting down, send an email to another server that would activate the same
script there, and have that script do the job until the first server is back
up. Of course, depending on email won't work if it's the network that's
down. I presume people do this all the time -- do they ping? -- but I've
just never done it and I'd be interested in how you'd go about it, what
cautions to watch out for, any examples or approaches I could at to do this
in perl on either a Windows or Linux box. Any help appreciated.


___
Perl-Win32-Users mailing list [EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Rename does not work with Windows

2003-08-11 Thread Perl Thingy
Thanks Mile and other supporters. It's was my mistake, I found that the file 
was not in the current working directory. All working fine now.
PT


From: michael higgins [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Re: Rename does not work with Windows
Date: Thu, 24 Jul 2003 22:14:03 -0400
[EMAIL PROTECTED] wrote:
Hi,

I use the statement in OS Win2K:
rename(oldfile, newfile);
even though it could see the file, but it doesnot seem to do rename.
It may have somthing to do with permission, but I'm the one who wrote the 
script!
Any idea as why it's not working

Thanks for helping out
PT --

What code did you write? ;-)

Does something like this work for you from the command line in the same 
folder as the file?

c:\perl -w -e rename 'file1', 'file2' or die $!

c:\perl -w -e rename 'file1', 'file2' or die $!
No such file or directory at -e line 1.
If you're using \ as a path delimiter, change to /. If \ is in  then it 
acts as an escape, so use \\ -- or just change to /.

HTH

-- mike higgins

_
Hotmail is now available on Australian mobile phones. Go to  
http://ninemsn.com.au/mobilecentral/signup.asp

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


Re: Extracting source from exe's

2003-08-11 Thread Trevor Joerges [SendMIME Software]
I think if you ask the PDK mailing list ([EMAIL PROTECTED]),
specifically Jan Dubois, he may do it for you if you can prove that the EXE
is really produced by you (i.e. name every file in the exe that was compiled
probably along with some specific information that only someone who had the
original file would know).

I doubt very much the process used to disassemble the EXE will be posted to
any of these lists.

Hope this helps.

Trevor Joerges

- Original Message - 
From: Mark A. Chalkley [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Monday, August 04, 2003 9:27 PM
Subject: Extracting source from exe's


 I know this has been discussed before, but I can't find it...

 Does anyone know if there's a way to extract the source code from an exe
built
 with PerlApp?  I was in the middle of doing a backup when my hard drive
crashed.
 Result:  both of them trashed.  First time in over 20 years of programming
that
 I've had that happen.  Bummer...

 Thanks,

 Mark Chalkley

 ___
 Perl-Win32-Users mailing list
 [EMAIL PROTECTED]
 To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs




___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: Installing XML::Parser

2003-08-11 Thread Carter Thompson

Rex,


Perhaps using CPAN might get you around the problem.  

Assuming you have CPAN installed and configured:

perl -MCPAN -e 'install XML::Parser'

Cheers,

Carter.

 -Original Message-
 From: Arul, Rex [mailto:[EMAIL PROTECTED]
 Sent: Wednesday, August 06, 2003 12:01 PM
 To: [EMAIL PROTECTED]
 Subject: Installing XML::Parser
 
 
 I am having a weird problem upgrading to the recent version 
 of XML::Parser.
 Through PPM, I gave a 'ppm verify --upgrade XML::Parser' 
 command and it
 waits for some time, does nothing (not even an error message) and then
 exits. When I issue a query, the old version is what exists 
 (2.27). So, I
 thought I would remove it and install it afresh, because my PPM SEARCH
 command shows an updated one available (2.31). However, when 
 I try removing
 it,it says PPM needs this module and hence you cannot remove it.
 
 I am in a Catch-22 situation. Any words of wisdom would be gratefully
 received.
 
 Thanks in advance,
 Rex
 
 ___
 Perl-Win32-Users mailing list
 [EMAIL PROTECTED]
 To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
 

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs


RE: [OT somewhat]: getting Win32 API info

2003-08-11 Thread Gerber, Christopher J
Title: [OT somewhat]: getting Win32 API info



 -Original 
Message- From: Peter Eisengrein 
[mailto:[EMAIL PROTECTED] Sent: Friday, 
August 08, 2003 8:40 AM To: Perl-Win32-Users Mailing 
List (E-mail) Subject: [OT somewhat]: 
getting Win32 API info  I 
would like to work with Win32::API and/or Win32::API::Prototype but am having 
trouble with getting info. How do you know 
whatfunctions are available and what parameters they expect. I'll be a very 
old man before I find this on Microsoft's website. Has
anyone writtena perl module 
(or function within Win32::API?) that can "read" a dll and tell you this 
info?
 Oh yeah, I want to write this on my 
WinME (yuck) machine which does not have quickview. 

Any help is greatly appreciated. 
Pete,
From my understanding, you really needa copy of 
the header file for the API to get what you need. The DLL itself is not 
required to contain information about the calling parameters. What APIs 
are you looking at? The Microsoft ones are actually pretty well documented 
at msdn.microsoft.com (if you already know the function name). All this 
said, I would look for existing modules before you try to use the API's. 
If you need to use a specific API and are getting stuck, let us know and we can 
help you with the code.
Chris

LEGAL NOTICE
Unless expressly stated otherwise, this message is confidential and may be privileged. It is intended for the addressee(s) only. Access to this E-mail by anyone else is unauthorized. If you are not an addressee, any disclosure or copying of the contents of this E-mail or any action taken (or not taken) in reliance on it is unauthorized and may be unlawful. If you are not an addressee, please inform the sender immediately.



Re: CSV munging and uninitialized values

2003-08-11 Thread Keith C. Ivey
Ted Schuerzinger [EMAIL PROTECTED] wrote:

 @line = split /\,/;

In the documentation for split() it says By default, empty 
leading fields are preserved, and empty trailing ones are 
deleted.  You want to preserve the empty trailing fields, so 
you need to use the third argument (and to use the third, you 
have to specify the second):

   @line = split /,/, $_, -1;

Also note that commas are not special in regular expressions, 
to there's no need to escape them.

-- 
Keith C. Ivey [EMAIL PROTECTED]
Washington, DC

___
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs