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 to run pkgacct and FTP it.

Discussion in 'General Discussion' started by djblamire, Jan 21, 2005.

  1. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    I am wanting to setup a cron job to automatically do a particular job every day (or every few days).

    I need it to do the following:

    pkgacct sitename1
    pkgacct sitename2
    pkgacct sitename3

    then connect to an FTP site eg. ftp.myothersite.com
    and FTP the created cpmove-whatever-tar.gz across to it.

    Any idea how this would be done ?? - I have never written a cron job/script before, and I'm not 100% sure where I would start.

    Thanks in advance for your help,

    Daniel
     
  2. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
  3. djblamire

    djblamire Well-Known Member

    Joined:
    May 3, 2003
    Messages:
    250
    Likes Received:
    0
    Trophy Points:
    16
    Hi,

    Thanks for your reply,

    Is there a similar way of just using the pktacct procedure rather than storing the cpanel usernames/passwords in a separate script, and automating it via cpanel ???

    Thanks again
    Daniel
     
  4. sawbuck

    sawbuck Well-Known Member

    Joined:
    Jan 18, 2004
    Messages:
    1,367
    Likes Received:
    5
    Trophy Points:
    38
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page