Hello Monks,
I wrote a simple script for a friend that he will be using to update his CS group's information webpage. His knowledge of Perl is limited, and although I still have
MUCH to learn, I can usually produce good enough code to obtain the desired effect.
The script that I wrote does only 2 things:
- uploads a pdf file to a specified directory
- updates a static html page w/ a link to the uploaded file
The problem is that I was running the script on my current remote server and shortly after received an email from tech support saying that my script "ran wild" and "hogged all of the system resources". I wrote debugging messages (
print "Some sort of message\n" if ($DEBUG);) that don't make it seem that the script is doing anything abnormal. The debugging messages are displayed just as I expect them to be and just before the code
exit(0); another debugging message is displayed. I'd assume that if it makes it to the debugging message, that it is also going to exit without errors correctly.
Anyway, my real question is how I should go about figuring out what the problem is. I've looked over my code and still do not see anything to abnormal, but tech support claims otherwise. I can only run the script on my remote server and don't have access to the command line. Any help is appreciated!