a script running a script

Bob Kleemann rkleeman at energoncube.net
Fri Nov 2 15:55:44 CST 2001


~sdpm~
Several possible solutions to investigate.

Cron the script to run every minute and check for a certain file which can
contain the intstuctions on what to do.

fork & exec.

Have the script output text as it goes along so the browser doesn't give
up on it (I think most browsers quit after N seconds of no activity from
the network). 

On Fri, 2 Nov 2001, Chuck Phillips wrote:

> ~sdpm~
> Hello Mongers,
> 
> The problem:
> 
> I have a CGI script for the administration of a website that, when 
> clicked, does a ton of stuff in the background for a ton of users. The 
> problem is that now that after a certain number of users were added the 
> script takes so long to finish what it's doing that the admin user's 
> browser times out.
> 
> My ideas:
> 
> I tried the following:
> 
> have the admin script execute another script in the background and then 
> write a script to grep for the process so that the user can run that to 
> check to see if it is done running.
> 
> So far running the script on the command line works fine. But putting 
> the same command w/in back ticks in my perl script doesn't seem to work. 
> (will system() work?)
> 
> `./build_clearances.pl &`;
> 
> Any Thoughts?
> 
> Thanks again,
> Chuck
> 
> P.S. cron job won't work because the script must execute when the user 
> wants to run it which could be any time.
> 
> ~sdpm~
> 
> The posting address is: san-diego-pm-list at hfb.pm.org
> 
> List requests should be sent to: majordomo at hfb.pm.org
> 
> If you ever want to remove yourself from this mailing list,
> you can send mail to <majordomo at happyfunball.pm.org> with the following
> command in the body of your email message:
> 
>     unsubscribe san-diego-pm-list
> 
> If you ever need to get in contact with the owner of the list,
> (if you have trouble unsubscribing, or have questions about the
> list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
> This is the general rule for most mailing lists when you need
> to contact a human.
> 
> 

~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list