in reply to Re^3: How to Limit MySql Execution Time?
in thread How to Limit MySql Execution Time?
my $sql = ...; my $cmd = qq[mysql --quick --raw -u $user -p$pass -be $sql] my @results; eval{ alarm 5; my $pid = open SQL, "$cmd |" or die $!; push @results, <SQL>; alarm 0; }; if( $@ ) { }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: How to Limit MySql Execution Time?
by BrowserUk (Patriarch) on Dec 22, 2010 at 03:53 UTC | |
by aceofspace (Acolyte) on Dec 22, 2010 at 06:54 UTC | |
by BrowserUk (Patriarch) on Dec 22, 2010 at 07:18 UTC | |
by Anonymous Monk on Dec 22, 2010 at 11:17 UTC | |
by Anonymous Monk on Dec 22, 2010 at 11:45 UTC | |
| |
by BrowserUk (Patriarch) on Dec 22, 2010 at 11:21 UTC |