possible to park domain via cron?

possible to park domain via cron?

Posted by: tinhair30
Posted on: 2008-03-11 14:51:00

hi,

is it possible to park a domain and unpark a domain with crontab?

I want to park a domain for 5 minutes every hour and then release the parked domain after the 5 minutes.

thanks in advance for the help

Edited by tinhair30 on 03/11/08 03:08 PM (server time).

Re: possible to park domain via cron?

Posted by: sdayman
Posted on: 2008-03-11 20:41:00

Doing any Panel operations from the command line is quite a trick. It's been done, but it doesn't seem very popular or easy to do.

I'm not even sure that *parking* a domain retains the original domain's data should you want to go back. It'd be easier to write a script that renames your directory from "mydomain.com" to "mydomain.sav" and then rename a "mydomain.park" to "mydomain.com" and put your Parked page in the mydomain.park directory.

Out of curiosity, why do you want to do this?

-Scott

Re: possible to park domain via cron?

Posted by: tinhair30
Posted on: 2008-03-12 08:23:00

because I have an online store and I need to update the inventory information once every hour. during this time, my script deletes everything in the mysql database and rebuilds the data into the database. I don't want customers to view the website during this process. If I can park the domain once every hour during this process it would solve my problem.

Re: possible to park domain via cron?

Posted by: sdayman
Posted on: 2008-03-12 14:42:00

In that case, the folder rename should work, as long as you don't need your web frontend to update your inventory.

-Scott

Re: possible to park domain via cron?

Posted by: tinhair30
Posted on: 2008-03-14 08:25:00

ok, i will try that out and see if it works for me. thanks again

Tags: crontabserver timecronthanks in advance