Re: Redirecting STDOUT

2003-12-12 Thread $Bill Luebkert
Jeremy A wrote: > Hi all, > > I am using IPC::Open2. I have a Read Handle (RH) and a Write Handle (WH). I > fork() for doing non-blocking IO. > my problem is , when i try the print the RH to socket ($client), It writes > to STDOUT (server console screen). nothing gets written to the socket. >

Net::DNS problems

2003-12-12 Thread David Gregg
I'm using Net::DNS on winnt and win2k that does lookups (i.e. PTR, MX, etc...) and having some problems. The send function hangs when using UDP and the nameserver is down or non-existant. When using TCP (i.e. $res->usevc(1) ), the same send function to a basd server at least times out after about

Redirecting STDOUT

2003-12-12 Thread Jeremy A
Hi all, I am using IPC::Open2. I have a Read Handle (RH) and a Write Handle (WH). I fork() for doing non-blocking IO. my problem is , when i try the print the RH to socket ($client), It writes to STDOUT (server console screen). nothing gets written to the socket. Thanks in advance for any help

Re: timing system call

2003-12-12 Thread Sisyphus
jtownsen wrote: I have some scripts that use "system" to drive a command line test harness. Each time I call system, I'd like to know how long the execution took. Is there a way to time the fork that is created when I call system? Untested: use Time::HiRes; use warnings; my $t0 = Time::HiRes::

RE: Perl commands and Proxy servers (DPR#67741)

2003-12-12 Thread Arms, Mike
Assuming that you are able to get throught the proxy using your browser, then we should focus on the name of the environment variable and the value set for it. On both my windows sytem and my Unix (solaris) system, I use: http_proxy=http://myproxy.domain.foo:80 You will need to set replace "myp

HTML::Parse or HTML::Parser?

2003-12-12 Thread Peter Davis
I've found both HTML::Parse and HTML::Parser on CPAN. Both seem reasonably current. Has anybody found reasons to prefer one to the other? My application is to parse the HTML part of e-mail messages, and to strip out potentially dangerous content such as fetches of remote images, scripts, etc.

timing system call

2003-12-12 Thread jtownsen
I have some scripts that use "system" to drive a command line test harness. Each time I call system, I'd like to know how long the execution took. Is there a way to time the fork that is created when I call system? Thanks ___ Perl-Win32-Users mailing

R: Perl commands and Proxy servers (DPR#67741)

2003-12-12 Thread Furioli Giancarlo
I've downloaded ActivePerl-5.8.0.806-MSWin32-x86.zip and I've installed it on my PC WinNT4.0. I've installed http://theoryx5.uwinnipeg.ca/ppms/Crypt-SSLeay.ppd No problem until last week. Last week my company installed an Apache/1.3.26 proxy server on our LAN. Now it's impossible to contact a we

Re: Win32::Service

2003-12-12 Thread Trevor Joerges
Try putting a error check around the StartService and GetStatus method calls like so: if( Win32::Service::StartService($hostName ,$serviceName) ){ print "Successfully started service $serviceName.\n\n"; } else { print "Error: "; print Win32::FormatMessage( Win32::GetLastError() )

Re: Sending e-mail? Calling emacs to edit?

2003-12-12 Thread Peter Davis
Thanks, Trevor. I'm actually doing the retrieval and mail reading now pretty much as you suggest. I was hoping there might be some tools around for composing and replying to messages also. Looks like Mail::Box may have some good features to simplify that, but I'm just starting to look into t

RE: Win32::Service

2003-12-12 Thread Kraaijer Ronald
Tried warnings, unfortunally did not give me any usefull hints. -Original Message- From: Sisyphus [mailto:[EMAIL PROTECTED] Sent: Friday, December 12, 2003 12:24 PM To: Kraaijer Ronald Cc: [EMAIL PROTECTED] Subject: Re: Win32::Service Kraaijer Ronald wrote: > Hi, > > I want to manage se

Re: Win32::Service

2003-12-12 Thread Sisyphus
Kraaijer Ronald wrote: Hi, I want to manage services on my Win NT 4 station using Win32::Service, but somehow it doesn't do as asked. Below a code snippet, the service Alerter is not started when I'm running this. Any Ideas? use warnings; use Win32::Service; $hostName = "127.0.0.1"; $serviceName

Win32::Service

2003-12-12 Thread Kraaijer Ronald
Hi, I want to manage services on my Win NT 4 station using Win32::Service, but somehow it doesn't do as asked. Below a code snippet, the service Alerter is not started when I'm running this. Any Ideas? use Win32::Service; $hostName = "127.0.0.1"; $serviceName = "Alerter"; %status = ""; $ref = \%