Re: Trapping Windows Web Activity

2005-01-28 Thread Mat Harris
On Fri, Jan 28, 2005 at 09:44:11 -0600, James W. Thompson, II wrote: > Out of curiosity is there any method for trapping Windows HTTP traffic > transparently, without establishing a proxy configuration, using Perl. > I am searching CPAN but can't find anything. I'm specifically looking > for a way

Re: Checking if a scalar value is a number or not

2004-12-01 Thread Mat Harris
On Wed, Dec 01, 2004 at 02:00:49PM +0100, Ing. Branislav Gerzo wrote: > Mat Harris [MH], on Wednesday, December 1, 2004 at 12:19 (+) > contributed this to our collective wisdom: > > >> Is there any special function for that job? > > MH> personally I

Re: Checking if a scalar value is a number or not

2004-12-01 Thread Mat Harris
On Wed, Dec 01, 2004 at 02:12:58 +0200, John wrote: > Hello > > Is there any special function for that job? personally I would use a rexex: if ($myunknownvalue =~ m/^\d*$/) { print "this is a number\n"; } else { print "this is some crap\n"; } hope this helps mat -- Cats land

Re: Dufus question about form-fields and colour

2004-03-22 Thread Mat Harris
On Mon, Mar 22, 2004 at 10:24:56AM -0500, WC -Sx- Jones wrote: > Mat Harris wrote: > >On Mon, Mar 22, 2004 at 03:05:16 +, mike wrote: > > > >>Does anyone know if it is possible to give a color attribute to form > >>field? > > > > > >sure, I

Re: Dufus question about form-fields and colour

2004-03-22 Thread Mat Harris
On Mon, Mar 22, 2004 at 03:05:16 +, mike wrote: > Does anyone know if it is possible to give a color attribute to form > field? sure, If you use classes (css) then you can assign a color sorry I've not got any examples right now as I'm on the move :) HTH -- Cats land on their feet. Toast l

Re: How to Access Serial Port in Perl

2003-03-11 Thread Mat Harris
his list - then you can ask questions > like: has anyone used xxx::xxx? is it > OK on my system ? etc. > > Aloha => Beau; > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mat Harris

Re: proxy server

2003-02-17 Thread Mat Harris
as transparent as possible, a method that AFAIK squid doesn't support. also it is just something to learn from. -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED]www.genestate.com msg38689/pgp0.pgp Description: PGP signature

proxy server

2003-02-16 Thread Mat Harris
rl - $remote_info - ok"); } else { chomp($url); logmsg ("$url - $remote_info - ".$resp->message); } } I believe the problem is recieving the headers. In the while() loop that reads the headers from the browser, the browser never gives a ^D so the while loop hangs. Any suggestion on how to cure this or any other ideas? cheers Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED]www.genestate.com msg38670/pgp0.pgp Description: PGP signature

Re: ascii or binary?

2003-02-10 Thread Mat Harris
fer mode for the above > described action? ASCII or binary? Is it dependend on the browser? if it is http, then ascii and binary don't come into it. if it is ftp then i believe the browser decides based on the actual file headers -- Mat Harris OpenGPG Public Key

Re: Graphing Data

2003-01-31 Thread Mat Harris
ived this message in > error, please notify us immediately by replying to the message and deleting > it from your computer. > > == -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED]www.genestate.com msg37700/pgp0.pgp Description: PGP signature

Re: Help to connect to mysql

2003-01-27 Thread Mat Harris
}); > > my $record_set = $mysql->create_record_iterator; > while (my $record = $record_set->each) { > printf "First column: %s Next column: %s\n", > $record->[0], $record->[1],$record->[2]; > } > > $mysql->close; > > I have tried

translation

2003-01-20 Thread Mat Harris
my boss emailed me this little snippet this morning and I have to confess it has me stumped. Please can someone break down this translation for me? perl -le '$_="7P0>374;";tr[0->][ LEOR!AUBGNSTY];print' thanks -- Mat Harris OpenGPG Publ

Re: more socket stuff - 2nd part

2002-12-31 Thread Mat Harris
Mark Goland wrote: glad it worked, although the fork() was sepose to be after the while loop. Cheers, Mark - Original Message - From: "Mat Harris" <[EMAIL PROTECTED]> To: "Mark Goland" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, Decem

Re: more socket stuff - 2nd part

2002-12-31 Thread Mat Harris
.child does action, parent waits for new connection. Dont do threading > for your project. > > Good Luck, > Mark > - Original Message - > From: "Mat Harris" <[EMAIL PROTECTED]> > To: "Mark Goland" <[EMAIL PROTECTED]> > Cc: "p

Re: more socket stuff - 2nd part

2002-12-31 Thread Mat Harris
ient = $server->accept()){ > fork{ > ... > } > } > > also consider closing the log inside your while loop. Are you trying to > write a DHCP server ??? > > Mark > - Original Message - > From: "Mat Harris" <[EMAIL PRO

more socket stuff - 2nd part

2002-12-30 Thread Mat Harris
nvert the attached server script into a multithreaded server. I would be very grateful. thanks I have also attached the partially completed client just to show how it all fits together. -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED]www.genestat

two-way socket troubleshooting

2002-12-28 Thread Mat Harris
, attemping to do a read() and send() from both sides, the client hangs. I have tried adding a sleep() but that has no effect. please can someone look them over and tell me where I am going wrong. thanks guys -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED

(forw) [bootscat@bellsouth.net: Re: FW: Need urgent help]

2002-10-09 Thread Mat Harris
- Forwarded message from Bootscat <[EMAIL PROTECTED]> - From: "Bootscat" <[EMAIL PROTECTED]> To: "Mat Harris" <[EMAIL PROTECTED]> Subject: Re: FW: Need urgent help Date: Tue, 8 Oct 2002 20:04:38 -0500 X-Priority: 3 X-MSMail-Priority: Norm

Re: FW: Need urgent help

2002-10-08 Thread Mat Harris
--- > -- > > > > The views and opinions expressed in this email message are the sender's > > own, and do not necessarily represent the views and opinions of Summit > > Systems Inc. > > > > > > -- > > To unsubsc

Re: Need urgent help

2002-10-08 Thread Mat Harris
: /usr/lib/perl5/5.6.1/i686-linux >/usr/lib/perl5/5.6.1 /usr/lib/perl5/site_perl/5.6.1/i686-linux >/usr/lib/perl5/site_perl/5.6.1 /usr/lib/perl5/site_perl/5.6.0 >/usr/lib/perl5/site_perl) at start.cgi line 10. > > Thanks and God Bless > Dan -- Mat Harris

Re: Encode perl script

2002-10-07 Thread Mat Harris
code a perl script ? > > I have tried a sofware "World Wide Perl Coder" but I don't know if > is safe ! > > Dave > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mat Harris

Re: File::Copy question

2002-10-07 Thread Mat Harris
ded instead of overwritten, using File::Copy > or do I need to use something else? > > > - > > The three most dangerous things are a programmer with a soldering iron, a > manager who codes, and a user who gets ideas. > > > > -- > To unsubscribe, e-mail: [E

Re: client-server with socket (fwd)

2002-09-24 Thread Mat Harris
udarshan Raghavan <[EMAIL PROTECTED]> > To: Mat Harris <[EMAIL PROTECTED]> > Subject: Re: client-server with socket > > On Tue, 24 Sep 2002, Mat Harris wrote: > > > sorry, i have not made myself clear and the many typos won't have helped > > either. I need both

Re: client-server with socket

2002-09-24 Thread Mat Harris
10:24:31 -0400, Bob Showalter wrote: > > -Original Message- > > From: Mat Harris [mailto:[EMAIL PROTECTED]] > > Sent: Monday, September 23, 2002 4:19 AM > > To: [EMAIL PROTECTED] > > Subject: client-server with socket > > > > > > i have got t

Re: client-server with socket

2002-09-23 Thread Mat Harris
lse { > # otherwise run child code here, reading from parent > # and writing to your socket > if ($from_parent = ){ > $auth=&get_auth; > $ip=&get_ip; > print $sock "ip=$ip"; > print $sock "auth=$auth

Re: log window

2002-09-23 Thread Mat Harris
> > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED]matthewh.genestate.com msg30920/pgp0.pgp Description: PGP signature

client-server with socket

2002-09-23 Thread Mat Harris
recieve info to and from the server, but there don't seem to be any examples of this 2-way conversation. -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED]matthewh.genestate.com msg30918/pgp0.pgp Description: PGP signature

gpg key update

2002-09-18 Thread Mat Harris
If anyone has stored my public key then please update it as i have had to change. it is really me talking, you can tell by the unecessary rambling. the new public key id is: C37D57D9 -- Mat Harris OpenGPG Public Key ID: C37D57D9 [EMAIL PROTECTED

Re: creating modules

2002-09-18 Thread Mat Harris
actually scrap that. if you could just tell me how to pass configs and variables to the module for use in a sub, that would be a great help On Wed, Sep 18, 2002 at 08:32:25 +0100, Mat Harris wrote: > ok, how about this: > > user opens a webpage, the module checks where a cookie is s

Re: creating modules

2002-09-18 Thread Mat Harris
chwartz, > Addison-Wesley, 1998, pages 177-197. > > -Original Message- > From: Mat Harris [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, September 18, 2002 3:02 AM > To: [EMAIL PROTECTED] > Subject: creating modules > > > i would reall like to start creating my own m

creating modules

2002-09-18 Thread Mat Harris
et my head round? cheers -- Mat Harris OpenGPG Public Key ID: CC14DD34 [EMAIL PROTECTED]matthewh.genestate.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Counting the same word

2002-09-17 Thread Mat Harris
unts the word once per line.. > if the word was in the line twice it would only count it once. > > > -Original Message- > > From: Mat Harris [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, September 17, 2002 12:06 PM > > To: ANIDIL RAJENDRAN > > Cc: [EM

Re: Counting the same word

2002-09-17 Thread Mat Harris
ot;cannot open file: $!"; > %seen = (); > while () { > while ( /(\w['\w-]*)/g) { > $seen{lc $1}++; > } > } > print "california: ". $seen{"california"}."\n"; > > -- Mat Harris OpenGPG Public

Re: Possible technical problems w/ e-mail from this group

2002-09-11 Thread Mat Harris
than that). As these > were from two separate senders, it starts to lead me to believe that the > corruption may be happening on the onion.perl.org list server. > > Is there anything you can do about this (assuming it is even in your > balliwick)? > > Thanks. > > John-- > > Vice President / Chief Technical Officer > Small Business Help Center, Inc. > http://www.helpbizowners.com > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mat Harris OpenGPG Public Key ID: CC14DD34 [EMAIL PROTECTED]matthewh.genestate.com msg30386/pgp0.pgp Description: PGP signature

Re: Where to start ? Listening to a port ...

2002-08-21 Thread Mat Harris
to my SMTP port ? > Would anybody can point me to somewhere to getting start ? > > Rgds, > Connie > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mat Harris OpenGP

Re: AW: how to make a regex for a ip address

2002-08-20 Thread Mat Harris
Mon, 19 Aug 2002 12:07:21 -0700, [EMAIL PROTECTED] > > >>>>>> > > >>>>(Root) wrote: > > >>>> > > >>>>>>>for a one liner: > > >>>>>>> > > >>>>>>>$_ = '12.34.56.78'; > > >>>>>>>map {$_ < 256} /^(\d+)\.(\d+)\.(\d+)\.(\d+)$/g || warn("not > > >>>>>>> > > >>>>>>> > > >>>>>>valid ip: $_\n"); > > >>>>>> > > >>>>>>I tried this with $_ = '1234.2345.56.78'; and received > > >>>>>> > > >>>no warning. > > >>> > > >>>>>>That's not good. > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>>-- > > >>>>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>>>>>For additional commands, e-mail: [EMAIL PROTECTED] > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>>> > > >>>>> > > >>>> > > >>>>-- > > >>>>Samy Kamkar -- cp5 -- [EMAIL PROTECTED] > > >>>>LucidX.com / LA.pm.org / code.LucidX.com > > >>>> > > >>>> > > >>>>-- > > >>>>To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>>>For additional commands, e-mail: [EMAIL PROTECTED] > > >>>> > > >>>> > > >>-- > > >>-- > > >> > > >>The views and opinions expressed in this email message are > > >>the sender's > > >>own, and do not necessarily represent the views and opinions of Summit > > >>Systems Inc. > > >> > > >> > > >>-- > > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >>-- > > >>To unsubscribe, e-mail: [EMAIL PROTECTED] > > >>For additional commands, e-mail: [EMAIL PROTECTED] > > >> > > >> > > > > > > > > -- > > -- > > > > > > The views and opinions expressed in this email message are the sender's > > > own, and do not necessarily represent the views and opinions of Summit > > > Systems Inc. > > > > > > > > > > > > > > > -- > > Samy Kamkar -- cp5 -- [EMAIL PROTECTED] > > LucidX.com / LA.pm.org / code.LucidX.com > > > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] -- Mat Harris OpenGPG Public Key ID: CC14DD34 [EMAIL PROTECTED]www.genestate.com msg29304/pgp0.pgp Description: PGP signature

variable behaviour question and including files

2002-08-16 Thread Mat Harris
ssible? You see I want to keep my main script as free of html as possible for portability's sake. cheers -- Mat Harris OpenGPG Public Key ID: CC14DD34 [EMAIL PROTECTED]www.genestate.com msg29138/pgp0.pgp Description: PGP signature

parsing tripwire logfile

2002-08-14 Thread Mat Harris
is an attachement of my script as such and a tripwire report thanks . -- Mat Harris OpenGPG Public Key ID: CC14DD34 [EMAIL PROTECTED]matthewh.genestate.i989.net #!/usr/bin/perl system("/usr/sbin/tripwire --check -r /tmp/tripwire-report.txt"); @report = `ca

Re: Uptime on Remote computer?

2002-08-14 Thread Mat Harris
e, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Mat Harris OpenGPG Public Key ID: CC14DD34 [EMAIL PROTECTED]matthewh.genestate.i989.net msg28983/bin0.bin Description: PGP Key 0xCC14DD34. msg28983/pgp0.pgp Description: PGP signature

Re: quotas

2002-07-19 Thread mat harris
sure, here is just the quota lines. the uid is retrieved by opening the /etc/shadow file and using split to seperate the values. the webspace var is input from STDIN - Original Message - From: "Ramprasad A Padmanabhan" <[EMAIL PROTECTED]> To: "mat harris" <[

Re: quotas

2002-07-19 Thread mat harris
yup, it is running as root for sure. Part of the script shells to the adduser command so if it wasn't root it would fail there. - Original Message - From: "Ramprasad A Padmanabhan" <[EMAIL PROTECTED]> To: "mat harris" <[EMAIL PROTECTED]> Cc: <[EMA

Re: quotas

2002-07-19 Thread mat harris
ok, i have had a go with the Quota module but it does nothing, does not change the quotas, not even an error message. does anyone have experience with it? thanks - Original Message - From: "Ramprasad A Padmanabhan" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>

Re: Opening and Writing to Files

2002-07-18 Thread Mat Harris
you need to add the name of the target filehandle when you write to it. for example: if you open writefile.txt with the filehandle WRITE, you must print to it like so: print WRITE "add some text"; At 18:18 18/07/2002 -0500, Carrie Lyn Brammer wrote: >I've looked throgh the recent archives. A

quotas

2002-07-18 Thread Mat Harris
hi, how can i edit a users' filesystem quota on redhat 7.3 from a perl script. i know that you can use the edquota program on the command line but that is an editor-style environment and thus would require an expect script. is there some command-line flags that work with edquota or anything to

RE: Can't Get Perl to Work on Win2K PC

2002-07-16 Thread Mat Harris
have you installed the perl processing language yet? you need to do that first as the no such file or dir message is probably talking about the perl executable, not the script. you can download avtiveperl for free from www.activestate.com. -Original Message- From: cory [mailto:[EMAIL PR

framegrabbing

2002-07-03 Thread Mat Harris
regularly depending on a user-defined time, from 10 seconds, to an hour. cheers. -- Mat Harris www.genestate.com -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Net::IMAP

2002-07-01 Thread Mat Harris
yes i have seen the simple version but the functionality seems minute in comparison At 19:29 01/07/2002 +, Felix Geerinckx wrote: >on Mon, 01 Jul 2002 19:20:21 GMT, Mat Harris wrote: > > > Am i right in thinking that Net::IMAP is a relatively new module? > > > > I ha

Net::IMAP

2002-07-01 Thread Mat Harris
Am i right in thinking that Net::IMAP is a relatively new module? I have been trying to use it and the documentation is really poor. Matthew Harrison Internet/Network Services Administrator www.genestate.com This e-mail (and any attachments) is confidential and may contain personal views whi

RE: RegEx to match Valid IP Address

2002-06-14 Thread Mat Harris
more important than knowledge. Knowledge is limited. >Imagination encircles the world." -- Albert Einstein [1879-1955] > > >-Original Message- >From: Mat Harris [mailto:[EMAIL PROTECTED]] >Sent: Friday, June 14, 2002 2:59 PM >To: Tim Musson; [EMAIL PROTECTED] >Subjec

Re: RegEx to match Valid IP Address

2002-06-14 Thread Mat Harris
ok, maybe that is ok but I recently was told by a networking engineer that the last octet _shouldn't_ be 255. the first 3 can be i think. At 14:34 14/06/2002 -0400, Tim Musson wrote: >Hey Mat, > >My MUA believes you used NeoMail 1.25 >to write the following on Friday, June 14, 2002 at 9:04:54 AM

system command interraction

2002-06-04 Thread Mat Harris
i am writing a perl script to run as a cron job and backup my files using dump. i have defined vars containing stuff like backup target, level of backup and so on. I want to issue the command to the command line, including the values of these vars. I have tried backticking and the system('comm

file downloading

2002-06-02 Thread Mat Harris
i have the following script to take in values for a text file and download RPM files from a Redhat mirror. I would like to have progress bar-type-thing and as it is only run from the command line, how can I do this? is it even possible with the modules i am using? thanks guys

RE: chop ing not phrased correctly

2002-05-23 Thread Mat Harris
At 17:24 23/05/2002 -0500, Shah, Urmil wrote: >What he wanted was 2 decimal points and chop everything else > >Eg. 123.4567890 > > Needed = 123.45 or 46 (rounding after 2 digits) > >He replied to me with clarification and i think forgot to hit reply all >which brought all this confusion.. > >I t

SOLVED: Re: SNMP

2002-05-23 Thread Mat Harris
At 11:30 23/05/2002 -0700, you wrote: >On Thursday, May 23, 2002, at 11:17 , Mat Harris wrote: > >>SNMP::Utils > > >Net::SNMP I am aware of - > cf: http://search.cpan.org/search?mode=module&query=SNMP > >so this must be the version from freshmeat

chop ing

2002-05-23 Thread Mat Harris
i know that chop returns the char chopped but how do i get that into a var? i want to be able to chop all numbers after decimal point from a numeric string. i thought something like this would work: while ($chopped_char ne "."){ chop $netout_new; $chopped_char = "how do i get

SNMP

2002-05-23 Thread Mat Harris
i have been trying to make a server info monitoring page using SNMP modules. i came across SNMP::Utils but I am getting the following errors after copying the tutorial pages _exactly_ Cannot find module (IP-MIB): At line 0 in (none) Cannot find module (IF-MIB): At line 0 in (none) Cannot find

printing html

2002-05-18 Thread Mat Harris
I know all about printing html to a browser from a CGI script, but is it possible to put PHP in that html? If so, how? -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]