a script running a script
Chuck Phillips
chuckphillips at mac.com
Fri Nov 2 14:12:42 CST 2001
~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.
More information about the San-Diego-pm
mailing list