Greetings:
I don't have the ability to install new modules on my ISP's server
(running Perl 5.05), and they are a bit sticky about such things. So, I
was wondering if any of you might be able to help me with a code
snippet. The problem is as follows:
1) I want to execute a function to clean up my database every other
Monday. I can easily have my ISP institute a cron job on the server to
kick off my Perl script that cleans the database, but the problem with
cron is that it can only be told to run every Monday.
2) When my Perl script executes every Monday, I want to have some code
in it to check and see if this is an even or odd Monday and either exit
or perform the functions for cleaning the database. Does anybody have
any code snippets or references for how I might check the date, and then
determine if this is the Monday that I want to execute the database
cleaning functions?
Thanks,
Mark
I don't have the ability to install new modules on my ISP's server
(running Perl 5.05), and they are a bit sticky about such things. So, I
was wondering if any of you might be able to help me with a code
snippet. The problem is as follows:
1) I want to execute a function to clean up my database every other
Monday. I can easily have my ISP institute a cron job on the server to
kick off my Perl script that cleans the database, but the problem with
cron is that it can only be told to run every Monday.
2) When my Perl script executes every Monday, I want to have some code
in it to check and see if this is an even or odd Monday and either exit
or perform the functions for cleaning the database. Does anybody have
any code snippets or references for how I might check the date, and then
determine if this is the Monday that I want to execute the database
cleaning functions?
Thanks,
Mark