The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cron job - download file?

Discussion in 'General Discussion' started by rossco, Oct 24, 2010.

  1. rossco

    rossco Member

    Joined:
    Dec 22, 2009
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hello, I need some help on how to download a file using a cron job.

    I need to download a zip file from an ftp address on a separate server from where the cron job will run, get the file and put it in a particular directory on the server.

    Could someone tell me how I can do that please?
     
  2. cPanelDon

    cPanelDon cPanel Quality Assurance Analyst
    Staff Member

    Joined:
    Nov 5, 2008
    Messages:
    2,557
    Likes Received:
    7
    Trophy Points:
    38
    Location:
    Houston, Texas, U.S.A.
    cPanel Access Level:
    DataCenter Provider
    Twitter:
    I believe a command like the following should accomplish the desired task:
    Code:
    # wget ftp://ftp.domain.tld/path/to/remote/file -O /path/to/local/file
     
Loading...

Share This Page