Cron Jobs question

Discussion in 'Programming' started by nickstan, May 6, 2008.

  1. #1
    Hi,

    I was wondering what is the syntax to copy a file from public_html to root folder at certain interval using cron jobs.

    Thanks
     
    nickstan, May 6, 2008 IP
  2. awatson

    awatson Active Member

    Messages:
    112
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Pretty vague question, but basically your command will look something like this:

    cp [path/to/public_html/][file] [path/to/destination]/[filename to use]

    I'd say make sure the command works first, then use crontab to set it up - here's a site with details on that:
    http://www.adminschoice.com/docs/crontab.htm
     
    awatson, May 6, 2008 IP