erikharrison has asked for the wisdom of the Perl Monks concerning the following question:
Alright, design question here. I've read up on security and whatnot for CGI scriting. The realization that CGI is hard has lead me to be wary of performing certain kinds of things with CGI scripting without asking the gurus first. Especially since I'm not messing with my own server, or even my own account on somebody elses server.
The situation: A CGI script makes little files with little bits of configuration information in them. The script can latter be invoked with this configuration info, through a proper request method. After a certain period of time the files expire and are deleted. The current system has every nth user get caught with the performance hit of doing a scan and delete of these config files.
The question: would it be legit (safe, reasonable, etc) to have every nth user fork a seperate process to do this sort of scanning, and have the parent go on without waiting for the child. I haven't worked alot with multiple processes, so it'd be helpful to hear what sort of considerations this kind of design must take.
Cheers,Light a man a fire, he's warm for a day. Catch a man on fire, and he's warm for the rest of his life. - Terry Pratchet
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: CGI scripting and multiple processes
by Zaxo (Archbishop) on Jun 09, 2002 at 23:26 UTC | |
|
Re: CGI scripting and multiple processes
by rob_au (Abbot) on Jun 10, 2002 at 01:06 UTC | |
by rob_au (Abbot) on Jun 15, 2002 at 08:06 UTC | |
|
Re: CGI scripting and multiple processes
by grep (Monsignor) on Jun 09, 2002 at 23:28 UTC | |
|
Re: CGI scripting and multiple processes
by mothra (Hermit) on Jun 10, 2002 at 12:52 UTC | |
by merlyn (Sage) on Jun 10, 2002 at 14:27 UTC | |
|
Re: CGI scripting and multiple processes
by breakwindows (Scribe) on Jun 10, 2002 at 14:32 UTC | |
|
Re: CGI scripting and multiple processes
by dsheroh (Monsignor) on Jun 10, 2002 at 16:56 UTC |