Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: CGI scripting and multiple processes

by dsheroh (Monsignor)
on Jun 10, 2002 at 16:56 UTC ( [id://173221]=note: print w/replies, xml ) Need Help??


in reply to CGI scripting and multiple processes

Multiple processes don't really enter into your question. If it's safe to do A (your script's work) and B (delete old files) sequentially, it's also safe to do A and B simultaneously. (OK, race conditions could enter into it, but I'm assuming that you won't be using an expired config file while doing actual work.) While there are definitely security issues that need to be addressed, forking doesn't add any new ones.

That said, the previous responses were correct: Use cron or an equivalent instead of making your CGI do things unrelated to servicing the current request.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://173221]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-20 04:08 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found