Help - Search - Members - Calendar
Full Version: Cron help
Linuxhelp > Support > Technical Support
I have a application running in Linux that utilizes a webservice that can be accessed within the office only. I have to shut it down for a couple hours a day in order to complete a backup. I was thinking that it would be easy for me to set a cron scrudule that says - any traffic to this IP will go to this intranet address. (which would show the online-offline calendar for that application. Is this possible? If not, what is the best suggestion for this type of event?
So cron can't do IP routing. What can is iptables, so what you need to do is look into a combinatino of iptables and crontab to do what you want.

iptables will allow you to route any traffic to a specific ip to another ip or what ever. And cron will alow you run a scrip that sets up and removes that rule.

Its a little tricky, but thats what you need to do.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2018 Invision Power Services, Inc.