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
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
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
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
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
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
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
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
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
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
});
>
> 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
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
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
.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
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
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
,
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
- 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
---
> --
> >
> > 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
: /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
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
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
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
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
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
>
>
>
> --
> 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
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
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
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
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
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]
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
ot;cannot open file: $!";
> %seen = ();
> while () {
> while ( /(\w['\w-]*)/g) {
> $seen{lc $1}++;
> }
> }
> print "california: ". $seen{"california"}."\n";
>
>
--
Mat Harris OpenGPG Public
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
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
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
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
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
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
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" <[
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
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]>
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
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
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
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]
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
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
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
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
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
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
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
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
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
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
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]
57 matches
Mail list logo