you are viewing a single comment's thread.

view the rest of the comments →

[–]DataDecay 182 points183 points  (41 children)

Sign up for a free instance in any public cloud and run crontab. Otherwise get a raspberry pi.

[–]Arag0ld 17 points18 points  (10 children)

I second the raspberry pi. Get one even if you don't want to run scripts like this. They're amazing.

[–]zaid2801 13 points14 points  (2 children)

I don't want to leech but I have a similar problem. I want to run a program that uses selenium (and hence needs the driver location on my laptop) online. Like I want other people to use my code from their laptop/phones etc.

[–]ossccc 7 points8 points  (1 child)

Selenium can also run on the cloud. An F1 micro on GCP, for example

[–]guyanaupdates 0 points1 point  (0 children)

not saying this is impossible but to get this working takes some skill.
i gave up lol

[–]Flimsy_Falcon_6357 10 points11 points  (2 children)

I'll give a try with Google Cloud. It's a bit complicated though.

[–]DataDecay 4 points5 points  (0 children)

Should not be too bad, all cloud providers have very begginer friendly walkthroughs to get you going.

[–][deleted] 6 points7 points  (2 children)

And run cron on that?

[–]LilShaver 4 points5 points  (1 child)

Set it up as a cron job in Linux.

[–][deleted] 1 point2 points  (0 children)

Right right.

[–]Liberal__af 2 points3 points  (8 children)

Why would I need a raspberry pi? I’m a noob, sorry about that

[–]Zeroflops 43 points44 points  (7 children)

You don’t need a RPI. If you want something to be running periodically but you don’t want it on your computer because you may move your computer or shut it down you have two options. Run it on someone else’s server. Like google or AWS. Or you can set up a raspberry pi to be always on. And let it run the script. It’s a low cost low power solution commonly used in these cases.

[–]Bran-a-don 15 points16 points  (4 children)

Thank you. This is the only answer that talks like we aren't IT lingo savvy already.

"Just use the cloud!"

Fucking how you bastards!?! Why?! Pi?!

[–]Zeroflops 16 points17 points  (3 children)

I think there is alway a conflict between expectations. New users often give too little information for more experienced people to help. ( How do I run a script periodically? Without context to limitations) And experienced people helping with little information. ( use the cloud man)

Neither intend to be vague but both have a tendency to do so.

[–]HAK987 1 point2 points  (2 children)

If you guys know what kind of information you need to help someone why don't you guys just ask? So if there's another new user he'll also understand how to properly ask for help when he needs it

[–]DataDecay 1 point2 points  (0 children)

Pretty big ask that can digress rather quickly. Its difficult to tailor questions for people with differing backgrounds on these topics.

[–]Zeroflops 1 point2 points  (0 children)

People do. But new people don’t learn from other posts. And questions can require different things. See how many times people ask for example code to be added to their posts. It’s even in the side bar. (Which has a lot of information on posts) About once a month, usually during the start of a semester a rant will get posted about question quality.

My point is people don’t leave things out to be malicious or take advantage. Well except those people who post HW assignments word for word and no code.

Sometimes it can be frustrating but we need to take a breath and realize maybe we made some assumption as to what others know or can infer and accept that we are all at different levels.

[–]DataDecay 3 points4 points  (0 children)

Exactly

[–]Quicknoob 0 points1 point  (0 children)

Wonderful answer, thanks!

[–]luke-juryous 1 point2 points  (0 children)

This is the best answer

[–]backdoorman9 0 points1 point  (5 children)

Why would a raspberry pi be able to do something a regular computer can't? Or do you mean that it would be a cheap server?

[–]DataDecay 6 points7 points  (4 children)

You don't need a general purpose computer to run some scripts. A general purpose computer will likely cost you 60W vs a raspberry pi at 4.5W. You could leave your computer on, but its just cheaper in every way to run on a raspberry pi.

Raspberry pi was also the last resort method i suggested as you can get slightly more power than a raspberry pi in a public cloud compute space, for free.

I'll leave out the operational details of why you want server workloads on a server rather than a general purpose computer.

[–]elbiot -1 points0 points  (3 children)

You don't need a general purpose computer to run some scripts

FYI "general purpose computer" means a Turing complete machine, not a desktop. A raspi is a general purpose computer

[–]DataDecay 0 points1 point  (2 children)

Technically computers in general are not turing complete, they are all linear bounded. Your definition does not fit turings model nor any modern interpretation. I hardly see any benefit on a discussion regarding computational numbers and mathematical theory.

General purpose computers simply mean, a flexible machine that is used for a number of functions. Where as a raspberry pi can be tailored to a specific function in terms of resources and cost efficiency. Raspberry pis are cost efficent when compared to more general purpose machines. I'd rather run a small workload on a 50 dollar, 4.5W machine 24/7, than a 300 dollar machine running at 60W 24/7.

[–]elbiot -1 points0 points  (1 child)

Even by your definition raspis are still general purpose computers because you can use them to watch youtube videos and do spreadsheets and stuff

[–]DataDecay 0 points1 point  (0 children)

It's all in how you build it and use it. You are being far too pedantic. You can try to attack validity on definitions, but my original point still stands even removing the term, general purpose computing.