Page 1 of 1

cron job to ftp some files

Posted: Mon Jan 26, 2009 10:08 pm
by urosh
Hello.

I have a question. As I am not so "in" in the Linux running on the meteohub, I would like to create a corn job, that would put the 4 txt files that i need (clientraw) to an FTP server. Is this posible and if yes, how?

As I allready asked in my other thread i would like to run more different WDL on my homepage. And as Julian Best wrote me:
WDL won't load data across domains - this is an inbuilt security feature of Flash. You either need to put your WDL swf and configuration files onto your web server or arrange for the clientraw files to be uploaded to the server with WDL on it.
So I have to do it some other way... One would be to upload those files to my hosted server and I could display both on my page.

As I am in the setup of my second WMR928 on metehub (I will buy the licence next week as this week I go to Helsinki) I would like to have both locations displayed on my page...

And the FTP upload would be a great option - if offcourse - it would be possible...

Tnx for the help and answers.

Cheers from Slovenia!

Re:cron job to ftp some files

Posted: Tue Jan 27, 2009 11:11 pm
by majland
Any files you copy to the transfer directory will be uploaded by meteohub automatically.

That is what i do for my extra 1-wire sensors.
I simply point the output of my custom plot to /data/transfer and soon thereafter i can find the picture on http://majland.org/weather/1wire.png

The plot is called by the crond via a crontab entry

If you want to upload them to another ftp than the one meteohub is configured to it should be simple to make a small script to ftp the files to other hosts.