I have a script that calls itself while it is running.
It works fine on NT servers, but when I change the script for use on Mac, it
doesn't quite work right. Im using Webstar 4.2 and the latest version of
Macperl.
When there aren't any scripts running, and I test the script,
it works fine. (Launches macperl and the scripts and displays the correct
output) Once the script is on its 5 minute timeout to quit and I try the
script again, it doens't work..(returns a timeout and the script on the server
seems to be running in an endless loop...it never reaches the 5 minute timeout
to quit and I can't quit the script by hitting the quit now button)
The script's source can be viewed here:
To get it to work at all, I had to change the $script variable
to the actual url the script is at. And that didn't even work. It
would print one frame and timeout on the other. After some creative
thinking, I tried making a duplicate script and changing the $script variables
(there are 3 in the whole script) to reference different scripts. The
final result I came up with was to change the first and last $script variables
to the url that the actual script running is at and change the second $script
variable to the cloned script.
If that isn't confusing enough I don't know what
is.
So after all, I have a few questions...
How can I quit a script without restarting, if the Quit now
button doesn't work and I can't do a force quit?
Why does the script keep freezing itself open and dying after
its first successful use?
Can Macperl handle scripts that call themselves?
and of course, How do I fix the
problem?
|