rsharpe has asked for the wisdom of the Perl Monks concerning the following question:
I'm having problems with an application that I wrote, I guess about a year ago. It was been working fine and has really come in handy from time to time. Now I'm having difficulties with it. First a little background is in order.
It is a web form that posts the information to its self. It then passes several parameters to a few perl modules that I wrote. These perl modules I wrote are for dynamically generating reports from NetFlow data (TCP/IP header statistics exported from Cisco or Juniper routers). My modules interact with open source software called FlowTools.
What happens after all the data is collected and checked from the web form it then creates a filter file; this is required by FlowTools, using the first perl module. Then it creates a report format file also required by FlowTools, using the second perl module. Then I execute a FlowTools command with system() function. This is were my problem comes in. This execution take a along time, in some cases it must process over one gig of data at a time. While this execution is going on the web browser is sitting a wait for something to be returned. The web browser times out and does not finish.
What is supposed to happen next is the application is to create an HTML file and email to the recipient. Then clean up all the other files that it created in order to generate the HTML file.
So my question is how can I restructure my application so that the web browser doesn’t time out kill the child processes? Once the submit button is pressed on the web page nothing more needs to be done, the forms job is over.
I really do appreciate your advice; this one has been stumping me for a while.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Program Structure
by merlyn (Sage) on Feb 02, 2006 at 21:06 UTC | |
by rsharpe (Initiate) on Feb 03, 2006 at 19:08 UTC | |
|
Re: Program Structure
by graff (Chancellor) on Feb 03, 2006 at 02:40 UTC | |
by rsharpe (Initiate) on Feb 03, 2006 at 19:20 UTC | |
|
Re: Program Structure
by dragonchild (Archbishop) on Feb 02, 2006 at 21:16 UTC | |
by rsharpe (Initiate) on Feb 03, 2006 at 19:15 UTC | |
|
Re: Program Structure
by diotalevi (Canon) on Feb 02, 2006 at 21:12 UTC |