perl cgi background process
Posted on 2005-04-09
i have a cgi script. problem is in that cgi script i m updating database...this takes approximately 2 minutes.
so the user has to wait 2 minutes when the browser is open which does not maks any sense.
can i do something like create a perl script (say background.pl) which does the updation of database.
when the user opens the cgi, the cgi should invoke the perl script but at the same time this script should be running in the background...so that the user in the foreground sees that everything is done...only thing is the perl application is running in background so that user does have to wait for 2 minutes to receive confoirmation...
as soon as user hits the submit button, he should immidiately get the confirmation
is it possible to do in cgi script.