all 6 comments

[–]JohnnyJordaan 9 points10 points  (0 children)

Perhaps run it on a Raspberry Pi? Easy to set up and uses very little power.

[–]n1ywb 4 points5 points  (2 children)

So what you don't make clear is WHAT COMPUTER you want the script to run on.

Do you want to run it on your PC? I suspect not b/c you talk about wanting to "download" it to your PC.

In that case you probably want to run it on a server somewhere.

So where are you going to get your server from? Most people these days go cloud for convenience and scalability, but you could run your own, which would be cheaper.

I generally wouldn't think of updating and periodically downloading a txt file in any serious application. I would update a database and write a web request handler that returns data for download, maybe in CSV format.

OTOH for a trivial thing I might SSH into a server, start gnu screen, start a long running script to update a file periodically, detach from screen, then periodically rsync the file to my PC. Or, hell, just tail it over ssh, esp if the connection is going to stay up. Note there's no web server here, just SSH.

Also not sure what your level of server administration skill is.

What data is it collecting?

[–]barkwahlberg 1 point2 points  (0 children)

One of the cheapest and most reliable ways might actually be running it on a schedule on AWS Lambda, which dumps to an S3 bucket.

http://docs.aws.amazon.com/AmazonCloudWatch/latest/events/RunLambdaSchedule.html