Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Hello. I have a DAT file that gets update it every 20 minutes . Now my question is , how can I make a script that will get those data and send it to an email every 1 hour. Or may be beter post it on a web address. The DAT file only has like three differents numbers separaded by commas.
Thank you all for the reply. Here is exacly what I want to do with better details....
I have a Linux server ( Netmax.com ), in there I have a folder that holds two .dat files ( Station#1_Public.dat" ) and ( Station#2_Public.dat" ). Those files updates
every 1 minute. In those files hold weather information such as temperature, wind speed, wind direction. Here is an example what is inside.
In windows XP, I have a software that converts those numbers into easy to read info (Example on Bottom) and store the .dat file on the server (Netmax).
Now is there a way you can make a script that will grab those information and upload it into .html format . So that way I can go to that page with my cell phone or PDA
and read the info by going to that page?
you don't need to convert it in html format. you can browse a text file on your browswer.
go see the man page of your command-line ftp client (ftp, ncftp...) and see how you can feed the connexion and transfer commands through a text file.
Then you set a cron job (look for a cron how-to or tutorial) at each minute to execute the ftp commands that reads the command file, and uploads your text file on a web server, using a .txt or .html extension.
I know exactly how to do all this, but you won't learn if I tell you everyting.
give him a hint: all I wanted to know was a simple thing, that was giving me grief, but they wouldn't tell me... I almost gave up in frustration...
moral: don't spoonfeed him, but give him a hint.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.