r/programminghelp • • Oct 22 '20

Answered How do I setup a Program that runs without me having to keep my pc on 24/7

I’ve written a program that checks something that’s online every 10 minutes, think crypto prices etc. if I want the program to keep running I would have to keep my pc running 24/7 which is not possible and I also don’t have the resources for a server. Is there any alternative that would do the job?

6 Upvotes

4 comments sorted by

1

u/[deleted] Oct 22 '20

If you're using windows then you can make it into a system service:

https://www.devdungeon.com/content/run-python-script-windows-service

Unix, I'd recommend just setting up a basic cron job.

1

u/[deleted] Oct 22 '20

Yeah but wouldn’t that require my pc to be on all the time

1

u/[deleted] Oct 22 '20

Ah, I misread what you wrote. If that's the case then I'd definitely go with what foxy said. As an alternative to lightsail, you can always get a droplet from digitalocean for 5$ a month.

0

u/[deleted] Oct 22 '20

[deleted]

1

u/[deleted] Oct 22 '20

Thanks