Web Hosting Talk







View Full Version : Cron job to run pkgacct and FTP it.


djblamire
01-21-2005, 07:47 PM
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