1. Please take a little time for this simple survey! Thank you for participating!
    Dismiss Notice

possible to have domain enabled at specific time?

Discussion in 'Plesk for Linux - 8.x and Older' started by dennysp, Jan 19, 2005.

  1. dennysp

    dennysp Guest

    0
     
    Hi,
    I want to kno if it is possible to have a specific domain get disabled and reenabled at certain times of the day, example, domain.com will become available at 6:00am and at 12:00am become disabled, is that possible? I know it would require a cron job, but I'm not sure what is the command.

    Thanks in advance
    -d
     
  2. RexAdmin

    RexAdmin Guest

    0
     
    If the actions needs to be ran on daily basis then you should use "cron", if not you should use "at" command along with creation utilities.

    For help use:

    man 5 crontab
    man crontab
    man at

    Good luck.
     
  3. dennysp

    dennysp Guest

    0
     
    Well, I know I have to use cron, but I'm not sure what is the plesk command to run to enable/disable the domain.
     
  4. RexAdmin

    RexAdmin Guest

    0
     
    /usr/local/psa/bin/domain.sh --off domain.com
    /usr/local/psa/bin/domain.sh --on domain.com

    Good luck.
     
  5. dennysp

    dennysp Guest

    0
     
    Thank you very much... that would do it

    -d
     
Loading...