cron job to ftp some files

Discussion of the Meteohub software package

Moderator: Mattk

Post Reply
urosh
Expert Boarder
Expert Boarder
Posts: 83
Joined: Wed Jul 30, 2008 10:12 am

cron job to ftp some files

Post 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!
majland
Junior Boarder
Junior Boarder
Posts: 20
Joined: Sun Jan 04, 2009 12:21 am
Location: N56 34.193 E9 32.550

Re:cron job to ftp some files

Post 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.
Post Reply