-d max_execution_time

From: Alvaro G Vicario (alvaro_QUITAR_REMOVE_at_telecomputeronline.com)
Date: 11/27/03


Date: Thu, 27 Nov 2003 11:32:18 +0100

I'm writing a shell script under Red Hat 9 that will process some thousand
records from a database so it'll normally take several minutes. According
to manual I can override the max_execution_time directive using the -d
switch. However, that switch seems to be ignored:

#!/usr/bin/php -d max_execution_time=1 -q

<?
.......
?>

No matter what value I write (0, 1, 9999...) the script stops after 30
seconds:

Maximum execution time of 30 seconds exceeded

The scripts runs as root and PHP is not using safe mode. I'm probably
missing something but I can't figure out what it is. Thank you in advance
for any clue,

-- 
-- 
-- Álvaro G. Vicario - Burgos, Spain
--


Relevant Pages

  • Re: Two ISP connections
    ... > I'd like to use ADSL whenever possible, but switch to HDSL in case the first line drops. ... write a perl or shell script that pings the router at the adsl isp ...
    (freebsd-net)
  • Re: Is there an "undo" for export at the end of a shell script?
    ... > Notice that $BLA already exists and has an unknown content. ... How do I switch ... > to the original value at the end of the shell execution? ... Nothing you do in the shell script has any ...
    (comp.unix.shell)
  • Switching runlevels
    ... I need a shell script that can switch between different runlevels.. ... I need to switch to runlevel 3 to install some ...
    (comp.unix.shell)
  • Re: Switching runlevels
    ... I need a shell script that can switch between different runlevels.. ... I need to switch to runlevel 3 to install some ...
    (comp.unix.shell)
  • Re: PL/SQL proc dies without a trace
    ... The 8i database contains nothing but a bunch of synonyms and a dblink ... The shell script is executed once a day as part of end-of-day ... We are working a TAR with Oracle Support and they are being as helpful ... thought it might be helpful to get a 10046 trace to get a finer-grained ...
    (comp.databases.oracle.server)