I am after uploading my stats via ftp on the shell to my web servers subdomain as index.html. Not exclusive to that, to also have it upload each 30 mins without the need for me to manually execute the ftp upload.For crontab create a file called "pisgchek" and chmod it 755.
Here is the content of my file:
Code:
#!/bin/sh
statsbin="./pisg"
statpath="/home/Ballarat/public_html/pisg-0.52"
cd $statpath
$statsbin
And here is my crontab entry:
Code:
0,30 * * * * ~/public_html/pisg-0.52/pisgchek >/dev/null 2>&1
For some reason (that I cannot remember) I have pisg sitting in "pisg-0.52" but that's irrelevant. LOL
Crontab updates my stats page every 30 minutes on the hour. You should be easily able to set up a crontab for FTP with little effort also.
I have a file called "pisgcheck" and i have a cron set to update the stats in intervals of 30mins, but as-of-right-now, the stats only generate to the folder public_html on the shell, and id like to have the stats on my website preferably.
Can anyone show me how i setup an ftp cronjob to upload my stats to my websever. I have looked at some readme's but I never seem to get it right, so, any help is appreciated.
Thanks