implement a simple Telnet "like" Daemon (protocol) in perl

2004-02-03 Thread Jeremy A
Hi all, I have been struggling to understand the Telnet Protocol, but the RFC's are like greek, and there are no good books for covering Telnet, and my mind is too stupid to wrap around it. I would like to create a telnet like protocol, that is easy for my own use. How do you go about redirect

RE: Win32 OLE: How to get content from a MSIE frame?

2004-02-03 Thread Jing Wee
Hi Steven Thank you very much for your response and leading me to the answer! I did not get it work with the codes you provided due to error when I ran it: retrying default method at C:/Perl/site/lib/Win32/OLE/Lite.pm line 156. Can't call method "item" on an undefined value at C:\test.pl line 14

New IE Update causes script problems

2004-02-03 Thread Time
Hello all,   The newest IE update caused a problem with the way one of my scripts run and this is the only place I knew to turn to for help.   It seems Microsoft is forcing developers to work around the ftp://username:[EMAIL PROTECTED] when used as an http request such as http://usernam

Re: perl proxy for browser

2004-02-03 Thread $Bill Luebkert
Jeremy A wrote: hi all, I found this perl proxy code on the net. I am trying to make this proxy work that my internet explorer browser can use. my future plan is to monitor information with this proxy. To set this up, in internet explorer, i went to menu "Tools->Internet Options->Connections->La

Win32::AdminMisc Anomaly

2004-02-03 Thread steve silvers
Does anyone have a problem running the same script accross different MS platforms? I have a snippet below from the Awin32::AdminMisc docs to get the diskspace size. use Win32::AdminMisc; @Geometry = Win32::AdminMisc::GetDriveGeometry("//server/c\$"); $Free = $Geometry[0] * $Geometry[1] * $Geome

Perl WMI locks profile when executed unattended

2004-02-03 Thread Frank Pikelner
I have a script that produces status information for server queues. When I execute the script from the server command line I obtain the desired results. When the script is executed unattended by the local account of servers (using AutoExNT from Win2k resource kit) service the local profile of the a

perl proxy for browser

2004-02-03 Thread Jeremy A
hi all, I found this perl proxy code on the net. I am trying to make this proxy work that my internet explorer browser can use. my future plan is to monitor information with this proxy. To set this up, in internet explorer, i went to menu "Tools->Internet Options->Connections->Lan Settings. chec

perl proxy for browser

2004-02-03 Thread Jeremy A
hi all, I found this perl proxy code on the net. I am trying to make this proxy work that my internet explorer browser can use. my future plan is to monitor information with this proxy. To set this up, in internet explorer, i went to menu "Tools->Internet Options->Connections->Lan Settings. chec

Re: Tk Problem Upgrading from 5.6.1.631 to 5.8.2.802

2004-02-03 Thread Sisyphus
Brian W Smith wrote: sub init_api { $GetActiveWindow= new Win32::API('user32', 'GetActiveWindow',['V'], 'N') or die Win32::FormatMessage(Win32::GetLastError()); Either change the above to: $GetActiveWindow= new Win32::API('user32', 'GetActiveWindow','','N') or die Win32::FormatMess

RE: How to strip out EOF characters

2004-02-03 Thread Chris Snyder
I might also add that: 1) I did not have to use binmode. 2) I came up with the correct number of lines (5) Note that even if you do not have an ending CrLf at the end of the file, the last line will be counted. If you you have any characters after the final CrLf, they will be counted as a new lin

RE: How to strip out EOF characters

2004-02-03 Thread Chris Snyder
Charlie Anderson wrote: --- snip --- I need to count the number of lines in a series of files for a database load validation. However, some of the files have hex 1A imbedded in the middle of the file, so my while loop dies a premature death. Any suggestions on how to proceed would be welcome. S

Re: How to strip out EOF characters

2004-02-03 Thread Andy_Bach
Isn't it a little silly to go on to try and read from whichever file handle after the open has failed? You've got two flags set (errorcheck2 and error_flag), so at least use one to skip around the "while <>". It looks like you're expecting to have a number of possible failures - make sure to

Re: How to strip out EOF characters

2004-02-03 Thread $Bill Luebkert
Charlie Anderson wrote: > Here is the complete (test) script, its part of a larger script, but this > one fails all by itself. > > $fileDir = shift @ARGV; > # $myvar = "srctree.txt"; > print "opening file $fileDir\n"; > open (tablehandle, $fileDir) || ($errorcheck2 = "TRUE"); >if ($errorche

Re: How to strip out EOF characters

2004-02-03 Thread Charlie Anderson
Here is the complete (test) script, its part of a larger script, but this one fails all by itself. $fileDir = shift @ARGV; # $myvar = "srctree.txt"; print "opening file $fileDir\n"; open (tablehandle, $fileDir) || ($errorcheck2 = "TRUE"); if ($errorcheck2 eq "TRUE") { print mainlog

Re: How to strip out EOF characters

2004-02-03 Thread $Bill Luebkert
Charlie Anderson wrote: > I need to count the number of lines in a series of files for a database > load validation. However, some of the files have hex 1A imbedded in the > middle of the file, so my while loop dies a premature death. Any > suggestions on how to proceed would be welcome. Snip b

How to strip out EOF characters

2004-02-03 Thread Charlie Anderson
I need to count the number of lines in a series of files for a database load validation. However, some of the files have hex 1A imbedded in the middle of the file, so my while loop dies a premature death. Any suggestions on how to proceed would be welcome. Snip below, TIA, open (tablehandle, $

RE: Help with Apache on Win32

2004-02-03 Thread Michael C. Davis
You're my new hero. B-bye Task Manager. At 01:48 PM 2/3/04 -0500, Michael Krygowski wrote: >Michael, > >Go here: >www.sysinternals.com > >Download the Process Explorer tool. It's invaluable and great!! :-) They have lots of other great tools which are worth the download as well. > >Hope that he

RE: Help with Apache on Win32

2004-02-03 Thread Michael Krygowski
Michael, Go here: www.sysinternals.com Download the Process Explorer tool. It's invaluable and great!! :-) They have lots of other great tools which are worth the download as well. Hope that helps. - Michael Krygowski -Original Message- From: Michael C. Davis [mailto:[EMAIL PROTE

Re: PAR-.79 help

2004-02-03 Thread alex p
I have tried putting nmake/make in the c:\windows directory but still doesn work. Maybe its my version of PAR. Where did you get your version? From: "Trevor Joerges" <[EMAIL PROTECTED]> To: "alex p" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: Re: PAR-.79 help Date: Tue, 3 Feb 2004 12:05:5

Help with Apache on Win32

2004-02-03 Thread Michael C. Davis
Hi, I'm running Apache with mod_perl on win32, the Perl being ActiveState 5.8.0 build 806. All this is working fine. My question has to do with detecting hanging processes. I can tell I have hanging processes (at times) because my CPU monitor pegs at 100%, and netstat shows TIME_WAIT connectio

arp monitor?

2004-02-03 Thread Hon Shi
I am collecting arp info, mac <-> ip. Is this true? You just listen? So you script something like system(arp > afile); parse afile for new mac addresses stick them in a hash with their ip go back do it again Right? Is there a module out there alread. Planned on calling the native arp. Tha

Re: PAR-.79 help

2004-02-03 Thread Trevor Joerges
Alex, Is your compiler (nmake or GNU make) located in your system path somewhere? It looks like the MakeFile is not finding it. What I would recommend is downloading the Microsoft nmake and placing it in your CL\WinNT directory but rename it to make.exe. Also, I'm not sure why your command "perl

Re: implement a simple Telnet "like" Daemon in perl

2004-02-03 Thread tanman
Why reinvent the wheel? MS$ has the standard Unix RSH client built-in to WinNT and its descendants (not sure about Win98 and it's bretheren), and the server (RshSvc) is available from the Win2K Resource Kit, or the Windows Services for Windows. This will work for all command-line interfaces. I'm

Re: PAR-.79 help

2004-02-03 Thread alex p
My output < > C:\Documents and Settings\win32 tools\par\PAR-0.79>perl Makefile.PL *** ExtUtils::AutoInstall version 0.56 *** Checking for dependencies... [Core Features] - File::Temp ...loaded. (0.13) - Compress::Zlib ...loaded. (1.16 >= 1.16) - Archive::Zip ...loaded. (1.06 >= 1) - Mo

Re: PAR-.79 help

2004-02-03 Thread alex p
I do have nmake installed. It is my understanding that a PAR needs to be created..<<<--- I dont know how to do that?? or where do i find (see below): "vcvars32.bat" or equivalent From: "Trevor Joerges" <[EMAIL PROTECTED]> To: "alex p" <[EMAIL PROTECTED]> Subject: Re: PAR-.79 help Date: Tue, 3