Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW

Re: Find and Replace script

by misc (Pilgrim)
on Aug 19, 2007 at 11:11 UTC ( #633588=note: print w/replies, xml ) Need Help??

in reply to Find and Replace script

Hm, why do you say working time is limited ?
Because of the timeout ?

Replies are listed 'Best First'.
Re^2: Find and Replace script
by Gangabass (Vicar) on Aug 19, 2007 at 13:07 UTC
    Yes. The buyer say that CGI exucution time is limited. Also i want to insure that i can continue searching if something bad happens (abnormal program termination).
      I'm not getting a picture..
      A limit of the execution time makes no sense to me..?

      If you've to deal with the browser timeout (I didn't formulate my question exact enough) I could think of a script which runs as a server, independent of the web server.
      You could start|control|stop the replace script through the web interface.

      I'd also say that you've more control over the separated replace script this way,
      the replace script could be restarted by a cron script if it's killed,
      oy you are able to run the script as another user as the web server/ with an other priority.

      [find and replace script]<--IPC-->[webserver cgi sript]

      The web interface could even update the progress and results through some javascript (ajax)

      This is at least how I would do this.

      beside this, storing the progress of the traversal in a filelist file seems like a good idea to me.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://633588]
[james28909]: why, what is the point. if you cant see that we are smarter than cavemen then i need to just shutup lol. cavemen didnt propell themselves onto a moon. they stared at it and probably howled

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (14)
As of 2017-12-15 15:03 GMT
Find Nodes?
    Voting Booth?
    What programming language do you hate the most?

    Results (433 votes). Check out past polls.