How to catch kill signal in PERL

2003-12-22 Thread Titu Kim
Hi, I am writing a simple perl script that will catch kill signal. I am able to catch the signal sent within the script. However, if I kill the process in a shell using "kill -9 PID", the handler does not catch it. Can someone help me? Here is my code snippet. ==Handler ===

RE: How to cate DBI error and pass the control to subroutine?

2003-08-27 Thread Titu Kim
...); > $dbh->{RaiseError} = 1; > > try { > $dbh->do("insert ..."); > } > catch Error with { > print STDERR "Insert failed!"; > } > > $dbh->do("update ..."); > > > ...Or if you only want to update when the insert >

How to cate DBI error and pass the control to subroutine?

2003-08-27 Thread Titu Kim
Hi, I am using DBI and DBD to insert into database. If the insert fails because of the key constraints, I want to continue to update that record. How can I it do this after I issue $sth->execute() statement? Thanks. __ Do you Yahoo!? Yahoo! SiteBuilder - Free,

Re: Perl script to ssh to other machine.

2003-08-16 Thread Titu Kim
suggestion to do this? Regards, --- Wiggins d'Anconia <[EMAIL PROTECTED]> wrote: > Titu Kim wrote: > > Hi, > >I am newbie in Perl. I would like to use a perl > > script to ssh to multiple linux machines to > execute > > uptime command. THen i need to get the res

Perl script to ssh to other machine.

2003-08-15 Thread Titu Kim
Hi, I am newbie in Perl. I would like to use a perl script to ssh to multiple linux machines to execute uptime command. THen i need to get the result of 'uptime' and analyse them. How can it do this? Thanks. __ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-