Batch script launced from python cgi script on apache dies after few minutes

Discussion in 'Apache' started by varunb, Jul 23, 2010.

  1. #1
    Hi techies,

    i am a newbie at apache. I have hosted a website that will launch a cgi script ( writen in python ) via submit. This cgi script will launch a batch file which need to run for maore than 1.5 hour, but it dies out around a minute

    I suppose the batch will be launched as a background process, and should not die out. Can anyone please help me on this

    Thanks.
     
    varunb, Jul 23, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    What do you see in the Apache error logs? The logs are stored at

    /etc/httpd/logs/error_log

    Also what exactly the process is that you want to run in the background? Check the server processes immediately after you run the file and see the usage.
     
    madaboutlinux, Jul 25, 2010 IP
  3. varunb

    varunb Peon

    Messages:
    2
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Hi,..

    actually I have hosted apache on Windows vista. I want to run a batch file which will launch a C executable file which needs to run for about 1.5 hours.
    The error.log shows this :- [error] [client 10.40.59.168] (70007)The timeout specified has expired: ap_content_length_filter: apr_bucket_read() failed,

    Please help me on this
     
    varunb, Jul 26, 2010 IP