Windows forking sockets

2005-03-31 Thread David Liouville
Have anybody a sample of client/server script wich fork and work under windows with more than 64 executions time of client request ? OlixDavid Liouville ADR : 1bis rue St Louis 35000 Rennes GSM : 06 88 70 16 45 TEL : 02 99 79 04 78 FAX : 02 99 79 78 17 WEB : http://www.olix.fr

Re: Socket + fork

2005-03-31 Thread Chris Wagner
I ran ur code and it went to 158 before I killed it. I don't know why it would die at 65 on ur system. I'm on 98SE and perl build 811. At 06:00 PM 3/30/05 +0200, David Liouville wrote: Could anybody tell me wy my server is closed at the #65 query from client ? (I fork the server socket for

RE: Socket + fork

2005-03-31 Thread John Serink
I don't think signals are suported on Win32 boxes. Cheers, John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of David Liouville Sent: Thursday, March 31, 2005 12:00 AM To: perl-win32-users@listserv.ActiveState.com Subject: Socket + fork

RE: ithreads

2005-03-31 Thread John Serink
If you're accessing the registry on remote PCs, you're using NetBios over TCP/IP, commonly referred to Microsoft Networking. I have no idea what NetBios default timeouts are. For TCP the connection timeout is 20 seconds on a Windoze box, user setable on Linux. You may be able to set the SMB

RE: Archive::Zip - Bad file descriptor on directories

2005-03-31 Thread Gardner, Sam
I noted I had some problems using the constants (e.g., AZ_OK) with Archive::Zip, so I went with the literal values. Sam Gardner GTO Application Development Keefe, Bruyette Woods, Inc. 212-887-6753 -Original Message- From: Sisyphus [mailto:[EMAIL PROTECTED] Sent: Wednesday, March

RE: ithreads

2005-03-31 Thread Paul Sobey
Why not ping the list of machines, throw the ones that are up onto a Thread::Queue, and have your threads pop them off one at a time? That way you guarantee that your threads always get a machine that's up to target. The other reason they might get upset, access denied accessing the remote

RE: ithreads

2005-03-31 Thread Peter Guzis
You can always stay single-threaded and use POE::Component::Client::Ping. If you aren't familiar with POE, though, it may present a bit of a learning curve. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Dietmar Fiehn, Dr. Sent: Wednesday, March 30, 2005

RE: More on Re: Windows DLL - Perl Interface

2005-03-31 Thread Lloyd Sartor
It's not clear to me what is meant by an OO manner. Is the DLL an implementation of one or more C++ classes? Or is the DLL being accessed from within a Perl class/object? Or both? Your questions lead me to consider passing objects between C++ and Perl. I don't know how that would/could be done.

RE: More on Re: Windows DLL - Perl Interface

2005-03-31 Thread Johan Lindstr
At 23:41 2005-03-31, Lloyd Sartor wrote: But if I needed a solution in a timely manner, I would concisely define what must be OO, and then probably attack it with Inline::C or Inline:C++. Win32::API certainly has its limitations. That's a good idea, except Inline::CPP doesn't work very well on

Re: Using Net-telnet to connect via ssh

2005-03-31 Thread Sisyphus
- Original Message - From: GT BAUTISTA, Rodel D. [EMAIL PROTECTED] To: perl-win32-users@listserv.ActiveState.com Sent: Thursday, March 31, 2005 5:05 PM Subject: Using Net-telnet to connect via ssh Hi to All, Is there a windows binary distribution of IO-Tty (or IO-Pty)? I can't

Nothing from Win32::PerfLib::GetCounterNames()

2005-03-31 Thread Lyle Kopnicky
I tried the following code: use Win32::PerfLib; my %counter; Win32::PerfLib::GetCounterNames('localhost', \%counter); print Number of counter hash keys: . (scalar (keys counter)) . \n; ... and I get 0. I am running it on Windows XP Home with ActiveState Perl 5.8.6. I also tried it on

Re: Nothing from Win32::PerfLib::GetCounterNames()

2005-03-31 Thread Rhesa Rozendaal
Lyle Kopnicky wrote: I tried the following code: use Win32::PerfLib; my %counter; Win32::PerfLib::GetCounterNames('localhost', \%counter); Try an empty string for the local machine: Win32::PerfLib::GetCounterNames('', \%counter); print Number of counter hash keys: . (scalar (keys

Re: Nothing from Win32::PerfLib::GetCounterNames()

2005-03-31 Thread Lyle Kopnicky
Rhesa Rozendaal wrote: Lyle Kopnicky wrote: I tried the following code: use Win32::PerfLib; my %counter; Win32::PerfLib::GetCounterNames('localhost', \%counter); Try an empty string for the local machine: Win32::PerfLib::GetCounterNames('', \%counter); That worked. Thanks, Lyle Kopnicky

How to find process owner?

2005-03-31 Thread Lyle Kopnicky
I am now using the code below to print a list of processes on the computer. It works. However, I would like to be able to tell which user is running each process. I need to be able to find a process with a certain name, running under a certain user account. How can I do this? Thanks, Lyle

Re: More on Re: Windows DLL - Perl Interface

2005-03-31 Thread Sisyphus
- Original Message - From: Johan Lindström [EMAIL PROTECTED] To: Perl-Win32-Users@listserv.ActiveState.com Sent: Friday, April 01, 2005 8:24 AM Subject: RE: More on Re: Windows DLL - Perl Interface At 23:41 2005-03-31, Lloyd Sartor wrote: But if I needed a solution in a timely

[OT] Spam to list

2005-03-31 Thread Sisyphus
Hi, Whenever I reply to this list I receive a message from [EMAIL PROTECTED] with the following subject: Symantec Mail Security detected that you sent a message containing prohibited content that is considered spam - please call email recipient. The body of the email reads something like:

RE: [OT] Spam to list

2005-03-31 Thread Gregory S. Williamson
Not I ... G -Original Message- From: Sisyphus [mailto:[EMAIL PROTECTED] Sent: Thu 3/31/2005 5:50 PM To: perl-win32-users Cc: Subject:[OT] Spam to list Hi, Whenever I reply to this list I receive a message from [EMAIL PROTECTED] with the following subject: Symantec

Re: [OT] Spam to list

2005-03-31 Thread $Bill Luebkert
Sisyphus wrote: Hi, Whenever I reply to this list I receive a message from [EMAIL PROTECTED] with the following subject: Symantec Mail Security detected that you sent a message containing prohibited content that is considered spam - please call email recipient. The body of the email

Re: [OT] Spam to list

2005-03-31 Thread Leigh Sharpe
Obviously they don't like Aussies. That's not it. ___ Perl-Win32-Users mailing list Perl-Win32-Users@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Config::IniHash and Unicode INI file

2005-03-31 Thread Bullock, Howard A.
Title: Config::IniHash and Unicode INI file Could someone give me a pointer to the methodology or relevant docs for using Config::IniHash with Perl 5.8.6 to read a Unicode INI file? The module read the file but the data contains all the nulls. Is there a way to convert the Unicode to

Re: [OT] Spam to list

2005-03-31 Thread sisyphus
- Original Message - From: $Bill Luebkert [EMAIL PROTECTED] To: Sisyphus [EMAIL PROTECTED] Cc: perl-win32-users perl-win32-users@listserv.ActiveState.com Sent: Friday, April 01, 2005 12:15 PM Subject: Re: [OT] Spam to list Sisyphus wrote: Hi, Whenever I reply to this list I

RE: [OT] Spam to list

2005-03-31 Thread Allegakoen, Justin Devanandan
8- Yep - I still get that notification. Obviously they don't like Aussies. Hmmm ... I didn't think there were any Kiwis on this list. 8- Nope it only targets the $10 poms. $15 poms are left out because they paid extra (justified by the extra distance the

Re: [OT] Spam to list

2005-03-31 Thread Lloyd Sartor
Ye of little faith...even PERL blesses those of the proper class...[EMAIL PROTECTED] wrote: -To: Sisyphus [EMAIL PROTECTED]From: "$Bill Luebkert" [EMAIL PROTECTED]Sent by: [EMAIL PROTECTED]Date: 03/31/2005 08:15PMcc: perl-win32-users perl-win32-users@listserv.ActiveState.comSubject: Re: [OT]

RE: Config::IniHash and Unicode INI file

2005-03-31 Thread Bullock, Howard A.
After reading the IniHash.pm I found that I could pass The ReadINI method a scalar reference. So my solution is: use Encode; open(FH, :encoding(UTF-16), $file); my $Data; { local $/; $Data = FH; close FH;#if (utf8::decode($Data)) { #print

RE: Config::IniHash and Unicode INI file

2005-03-31 Thread Bullock, Howard A.
I apologize for the previous post that was sent prematurely. After reading the IniHash.pm I found that I could pass The ReadINI method a scalar reference. So my solution is: use Encode; open(FH, :encoding(UTF-16), $file); my $Data; { local $/; $Data = FH;

RE: ithreads

2005-03-31 Thread Anderson, Mark (Service Delivery)
Remember that a response to ping doesn't actually mean the machine's alive, only that the NIC is responding. I've seen servers and workstations that have crashed respond to ping far too often. I'd recommend you $response=`NBTSTAT -a $computer` the machines instead then grep the results for the

restraining grep

2005-03-31 Thread Spencer_Lists
Greetings perl-win32-users, I have a few programs that accept user input as a series of integer values pairs separated by a delimiters between the pairs and the elements of the pairs. I previously made an array out of the first halves of the pairs and also a hash indexed by the first value and

RE: ithreads

2005-03-31 Thread Alan Peck
Thanx you all your comments, I see what I can put together that is effective. Alun Alun Peck Section Head: Computers Department of Mathematical Technology Faculty of Natural Sciences Tshwane University of Technology [EMAIL PROTECTED] Tel: (012) 318 6389 Fax: (012) 318 6114 Anderson, Mark