Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread shawn wilson
to access that from perl. On Nov 23, 2010 9:55 PM, "Peter Scott" wrote: > On Tue, 23 Nov 2010 21:59:19 +0530, Amit Saxena wrote: > >> Hi all, >> >> What's the best way to monitor ssh connectivity, and not just ssh port >> availability, to a server using

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Peter Scott
On Tue, 23 Nov 2010 21:59:19 +0530, Amit Saxena wrote: > Hi all, > > What's the best way to monitor ssh connectivity, and not just ssh port > availability, to a server using perl assuming following constraints ? > > I tried for Net::SSH but public private key is not al

Re: [PBML] Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Amit Saxena
0gmail.com >> wrote: > > > > > Well, each new ssh connection should spawn a new process so you > > could look > > > at it from that end. More technically, you could look into netstat > > or lsof > > > modules. > > > On Nov 23, 2010 11:31

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread C.DeRykus
On Nov 23, 8:29 am, learn.tech...@gmail.com (Amit Saxena) wrote: > Hi all, > > What's the best way to monitor ssh connectivity, and not just ssh port > availability, to a server using perl assuming following constraints ? > > I tried for Net::SSH but public private key is n

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Arun G Nair
t; > modules. > > On Nov 23, 2010 11:31 AM, "Amit Saxena" wrote: > > > Hi all, > > > > > > What's the best way to monitor ssh connectivity, and not just ssh port > > > availability, to a server using perl assuming following constraints ? &

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Amit Saxena
> Hi all, > > > > What's the best way to monitor ssh connectivity, and not just ssh port > > availability, to a server using perl assuming following constraints ? > > > > I tried for Net::SSH but public private key is not allowed. > > > > I

Re: Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread shawn wilson
Well, each new ssh connection should spawn a new process so you could look at it from that end. More technically, you could look into netstat or lsof modules. On Nov 23, 2010 11:31 AM, "Amit Saxena" wrote: > Hi all, > > What's the best way to monitor ssh connectivit

Monitoring ssh connectivity to a server using perl !

2010-11-23 Thread Amit Saxena
Hi all, What's the best way to monitor ssh connectivity, and not just ssh port availability, to a server using perl assuming following constraints ? I tried for Net::SSH but public private key is not allowed. I tried for Net::SSH::Perl etc but these are not built in perl distribution (a

regd. connectivity to db2

2005-10-03 Thread mayank . ahuja
Hi Perlers.. I am not able to connect to my perl script to databaseCould u plz help me.. my Code in the simple form is listed below... and the error i have listed in BOLD letters. use strict; use warnings; my $dbh = DBI->connect( 'DB

Re: mysql connectivity...

2004-10-27 Thread Chris Devers
On Wed, 27 Oct 2004, Michael Gargiullo wrote: > On Wed, 2004-10-27 at 16:16, Chris Devers wrote: > > > > You did look it up, right? > > > > I deliberately gave only part of the string you need to use... > > > > Yup... $id=$dbh->{'mysql_insertid'}; Worked like a charm. Good -- now you know

Re: mysql connectivity...

2004-10-27 Thread Michael Gargiullo
On Wed, 2004-10-27 at 16:16, Chris Devers wrote: > On Wed, 27 Oct 2004, Michael Gargiullo wrote: > > > On Wed, 2004-10-27 at 15:42, Chris Devers wrote: > > > > > > (Hint -- search in the perldoc for 'insertid'.) > > > > Thanks Chris, > > > > I was using the PHP function instead of perl's... >

Re: mysql connectivity...

2004-10-27 Thread Chris Devers
On Wed, 27 Oct 2004, Michael Gargiullo wrote: > On Wed, 2004-10-27 at 15:42, Chris Devers wrote: > > > > (Hint -- search in the perldoc for 'insertid'.) > > Thanks Chris, > > I was using the PHP function instead of perl's... You did look it up, right? I deliberately gave only part of the st

Re: mysql connectivity...

2004-10-27 Thread Michael Gargiullo
On Wed, 2004-10-27 at 15:42, Chris Devers wrote: > On Wed, 27 Oct 2004, Michael Gargiullo wrote: > > > I have a table like so: > > > > id -> auto increment > > name -> name > > > > After I insert a new name > > insert into mytable values('','Bob'); > > > > I need Bob's id returned. > > Hey,

Re: mysql connectivity...

2004-10-27 Thread Chris Devers
On Wed, 27 Oct 2004, Michael Gargiullo wrote: > I have a table like so: > > id -> auto increment > name -> name > > After I insert a new name > insert into mytable values('','Bob'); > > I need Bob's id returned. Hey, wait -- you could write a program to do that, couldn't you! And reading `

mysql connectivity...

2004-10-27 Thread Michael Gargiullo
I have a table like so: id -> auto increment name -> name After I insert a new name insert into mytable values('','Bob'); I need Bob's id returned. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Connectivity with DB2 on AS400

2002-10-30 Thread Shaun
Hi Dana, > my $dbh=DBI->connect("dbi:DB2:$source", $user, $pass, {RaiseError => 1 > }); Try: my $dbh = DBI->connect( "dbi:DB2:$source", $user, $pass, {RaiseError => 1, PrintError => 1, AutoCommit => 1} ) or die "Unable to connect: " . $DBI::errstr . "\n"; > > my $sth = $dbh->prepar

Re: connectivity

2001-08-07 Thread Abdulaziz Ghuloum
Hello, Why are you not using CGI.pm? Why are you parsing the data yourself? Doing so is very error prone and you *will* get into trouble. Try doing the following in your script: #!/usr/bin/perl -w use strict; use CGI qw/param/; my $name = param('Name'); my $age = param('Age'); my $city = para

connectivity

2001-08-07 Thread vsarunkumar
hai i tried to pass three variables & obtain the output to be in table format .but i could not get any output. The code is as follows. my html program (calling) Post Method http://mc6308/cgi-bin/check.cgi";> Name Age City my cgi program (called ) print "Con

Re: database connectivity

2001-08-06 Thread Mel Matsuoka
At 03:05 PM 08/06/2001 +0530, [EMAIL PROTECTED] wrote: >hi >I am facing a problem while trying to connect toSQL Server Database >but my code does not even trigger a request to the database ( according to >log files) > >My code is below, What is the problem ? >Is it regarding to the code ? >Or to

database connectivity

2001-08-06 Thread vsarunkumar
hi I am facing a problem while trying to connect toSQL Server Database but my code does not even trigger a request to the database ( according to log files) My code is below, What is the problem ? Is it regarding to the code ? Or to that of the settings made before the code is executed ( i.e cop

25th Port connectivity

2001-05-31 Thread VeeraRaju_Mareddi
Hi Everybody I wanna scan some specific ports on a remote machine(25th Port), Whether they are active in state or not. Please provide me basic idea for this to be worked out. If anybody of u have idea ,concept please let me. I want to this to be Done through perl script. Ur help would be gratef