How do I make a script run once a year between certain hours
Posted: Tue Nov 28, 2006 10:38 am
Hello.
I'm trying to create a script that will deny access to services from external locations temporarily while server maintainance is run. I can think of a few ways to do this, either by shutting down the HTTPD or altering the firewall rules to DENY access to external sources. This isn't the problem though, the script has to be a shell script which will run between 23:00 - 0:00 once a year at which point the external source connections are denied. I'm assuming I'm going to have to use a unix timestamp to perform this but I'm not sure how I'm going to run the calculation to perform this. Can someone throw me a suggestion please?
Stephen,
I'm trying to create a script that will deny access to services from external locations temporarily while server maintainance is run. I can think of a few ways to do this, either by shutting down the HTTPD or altering the firewall rules to DENY access to external sources. This isn't the problem though, the script has to be a shell script which will run between 23:00 - 0:00 once a year at which point the external source connections are denied. I'm assuming I'm going to have to use a unix timestamp to perform this but I'm not sure how I'm going to run the calculation to perform this. Can someone throw me a suggestion please?
Stephen,