libwww-perl authorization problem

2010-02-19 Thread cerr
Hi There, I'm trying to login to a ssl encrypted webinterface with authrization uing LWP but I don't get authorized for some reason and i can't figure out why not. My code: my $url = 'https://192.168.167.166/'; # Yes, HTTPS! my $browser = LWP::UserAgent->new; $browser->credentials( 'ht

Re: pid file issues...? HUH???

2009-12-12 Thread cerr
On Dec 10, 11:31 pm, jimsgib...@gmail.com (Jim Gibson) wrote: > At 11:43 AM -0800 12/9/09, cerr wrote: > > > > >Hi There, > > >I use below code to make sure i have only one instance of my script > >running at a time. But weirdly enough i sometimes seem to have runn

Re: pid file issues...? HUH???

2009-12-12 Thread cerr
t only one line is being returned (from the actual call)... - any suggestions/ comments? Thanks, Ron On Dec 10, 11:31 pm, jimsgib...@gmail.com (Jim Gibson) wrote: > At 11:43 AM -0800 12/9/09, cerr wrote: > > > > >Hi There, > > >I use below code to make sure i have only o

pid file issues...? HUH???

2009-12-10 Thread cerr
Hi There, I use below code to make sure i have only one instance of my script running at a time. But weirdly enough i sometimes seem to have running two instances. This script is getting called on a regular basis by a cron job and may take a long time (30+min)to complete but still...I can't figure

udp server

2009-11-26 Thread cerr
Hi There, I need a server that's listening on UDP port 5000. I have successfully gotten a TCP client to listen on port 5000: [perl] #!/usr/bin/perl -w # serverfork.pl - a server that forks a child # process to handle client connections use strict; use IO::Socket; use Sys::Hostname; use POSIX qw(:s

DBI escape_string

2009-11-05 Thread cerr
Hi There, On http://www.codepedia.com/1/PerlDBITutorial I found that prepare() would escape a string. Now I have a query like this: "INSERT INTO logs (source, date, time, program, msg, inserttime) VALUES ('NovaxPRG-T0029', '2009-11-02', '09:51:11', 'NovaxPRG', 'NovaxPRG [931]: T0029: CRITICAL: cou

Re: lettinf an external basgh command timeout inside eval

2009-10-22 Thread cerr
On Oct 21, 8:31 am, jimsgib...@gmail.com (Jim Gibson) wrote: > At 3:59 PM -0700 10/20/09, cerr wrote: > > >Hi, > > >I wanna execute an external bash command but timeout if it's taking > >longer than XX seconds. I've tried it like this: > >eval {

lettinf an external basgh command timeout inside eval

2009-10-21 Thread cerr
Hi, I wanna execute an external bash command but timeout if it's taking longer than XX seconds. I've tried it like this: eval { local $SIG{ALRM} = sub {die "alarm\n"}; alarm $timeout; $test = `$sshpassPATH . " -p ".$clientpw." ssh root@".$ip." ". $RemcksumPATH." ".$Remcksum