Re: [Perl-unix-users] What is running on Windows

2003-02-26 Thread palladium
Search Google for Pstools, they have a utility for that local and remote processes and the ability to kill them from the command line. On Thu, 27 Feb 2003 07:18:54 +0200, Mundell, R. \(Ronald\) wrote > Good Day All > > I am wondering what utility can one use to determine what is running > under

[Perl-unix-users] What is running on Windows

2003-02-26 Thread Mundell, R. \(Ronald\)
Title: What is running on Windows Good Day All I am wondering what utility can one use to determine what is running under windows like the ps utility under UNIX Ronald Mundell Application Support & Maintenance (Retail & Corporate) Nedbank Ltd. 105 West BG3 881-3751(011) 083407 Th

Re: [Perl-unix-users] REUSED ADDRESS in Data::dumper

2003-02-26 Thread Andy_Bach
>From the Dumpvalue pm # Check for reused addresses if (ref $v) { my $val = $v; { no strict 'refs'; $val = &{'overload::StrVal'}($v) if defined %overload:: and defined &{'overload::StrVal'}; } ($address) = $val =~ /(0x[0-9a-f]+)\)$/ ; if (!$self->{dum

Re: [Perl-unix-users] REUSED ADDRESS in Data::dumper

2003-02-26 Thread $Bill Luebkert
Martin Moss wrote: All, When I dump a hash structure using 'x' on the perl debugger it looks like this:- 0 HASH(0x8658db4) '_load' => HASH(0x8ad6b00) 'PROCESSING' => 1 'STRUC' => HASH(0x8b56f94) -> REUSED_ADDRESS I am curious as to what REUSED_ADDRESS me

[Perl-unix-users] REUSED ADDRESS in Data::dumper

2003-02-26 Thread Martin Moss
All, When I dump a hash structure using 'x' on the perl debugger it looks like this:- 0 HASH(0x8658db4) '_load' => HASH(0x8ad6b00) 'PROCESSING' => 1 'STRUC' => HASH(0x8b56f94) -> REUSED_ADDRESS I am curious as to what REUSED_ADDRESS means? I am concerne

Re: [Perl-unix-users] how to check status of a UDP port with IO::Socket::INET

2003-02-26 Thread $Bill Luebkert
Jim Lane wrote: Hi, All i have a little Perl script that is, among other things, checking the status of ports on remote machines. with TCP ports it seems to work fine. however, when i try the same thing on UDP ports it seems to always work all the time on all servers, even when the port is down. t

Re: [Perl-unix-users] How to captures a web pages in a variable

2003-02-26 Thread Anthony Ettinger
Sorry, I didn't look at my code closely enough. Here's the solution that should work for you (i was using a proxy server to send the request). sub httpRequest { my $get_url = shift; my $ua = LWP::UserAgent->new(timeout => 5); $ua->agent("Some User Agent"); #not necessary

Re: [Perl-unix-users] How to captures a web pages in a variable

2003-02-26 Thread Anthony Ettinger
use LWP::UserAgent use HTTP::Request $proxy = $url; #or just replace $proxy with $url. my $response = &httpRequest($proxy); sub httpRequest { my $proxy = shift; my $ua = LWP::UserAgent->new(timeout => 2); $ua->agent("Anti-War v2.0"); $ua->proxy('http', "http://

[Perl-unix-users] How to captures a web pages in a variable

2003-02-26 Thread Ing. Ricardo Cumberbatch L. \(PANNet - URC\)
Hi How could i do example: Server B execute a page from Server A and saved the information and send it to Server C. Server C couldn't know that the infomation came from Server A. I found that in PHP is do in this way: function verificar_url($url) { //abrimos el archivo en lectura

[Perl-unix-users] how to check status of a UDP port with IO::Socket::INET

2003-02-26 Thread Jim Lane
Hi, All i have a little Perl script that is, among other things, checking the status of ports on remote machines. with TCP ports it seems to work fine. however, when i try the same thing on UDP ports it seems to always work all the time on all servers, even when the port is down. the code i'm usin

RE: [Perl-unix-users] Hash of Hash Perl Questions.....

2003-02-26 Thread Burak Gürsoy
You must use arrayref to make a key value an array: ssh => [eth0,...] you can make the keys hash ref also: %HoH = ( machine-name => { ssh => {eth0 => ,eth1 => ,eth0 =>,eth0 =>}, }, ); and use exists. Or write a compare sub, for every key of the arrayref... > -Original Message-

RE: [Perl-unix-users] Hash of Hash Perl Questions.....

2003-02-26 Thread Thomas_M
Oops, minor syntax error in my last post, but the point is still valid. > -Original Message- > From: Thomas_M > Sent: Wednesday, February 26, 2003 10:35 AM > To: 'Williams, P. Lane'; [EMAIL PROTECTED] > Subject: RE: [Perl-unix-users] Hash of Hash Perl Questions. > > > PLW wrote: > >

RE: [Perl-unix-users] Hash of Hash Perl Questions.....

2003-02-26 Thread Thomas_M
PLW wrote: > Anyone have any basic pointers of how to handle the array > portion?? I am thinking I will need to include a subroutine > that will do the job. This is going to sound funny, but here's my advice: use a hash. Take your HoHoL and make it a HoHoH. > This is what I would like it to lo

[Perl-unix-users] Hash of Hash Perl Questions.....

2003-02-26 Thread Williams, P. Lane
I am trying to write a PERL app that will look at the messages logfile and weed out the firewall messages. Then build a pretty daily report. I first grep what I am looking for into an array. Then I feed that information into a hash formatted with the variable that I want(below). Once I have

[Perl-unix-users] compiling programs

2003-02-26 Thread Alicia Hopkins
Dear All; I am trying to use a program written in perl on a unix system, but the program was complied on a sun machine. When I execute the following command: % perl bbf -i sample.in -o sample.out I receive the following error: Sequence Num 1 ./search: ./search: cannot execute binary file W

RE: [Perl-unix-users] want to compare character in two files

2003-02-26 Thread Matt Schneider
Hello, I just glanced over your code and it looks like you are trying to run nested while loops on two open files. If this is so then you need to give the inner loop file handle and outer loop file handle different names. You have named them both LECTOR. You handled this problem with your va