in reply to Re: Re: avoid time out
in thread avoid time out

If you have a unix/linux type system simply write the script that does the processing & emails the user (e.g. using Mail::Mailer), then in the cgi script just run the second script with the argumnets required thought a system call:
e.g.
system("myProg.pl email_add arg2 arg3 etc &");
note the & to run the job in the background. Then print oput some info to the browser like "youre job has been submitted and will email the results etc..", Obviously youll have to get the user to sumbit there email address in some html-form.
I should really do something about this apathy ... but i just cant be bothered

Replies are listed 'Best First'.
Re: Re: Re: Re: avoid time out
by Anonymous Monk on May 19, 2004 at 07:11 UTC
    Hi I did this ...but still it does not print anything on screen till the background scripts execution in not over. tried exec() also...but the same problem