1

I am using HelioHost server, and I have a Python script which weekly generates a graph which I would like to show on a webpage. I would like to know how to keep this Python script running constantly on the server for it to perform this task. I have uploaded it to the public_html/CGI-BIN, however this is only executed when I access the address (if my understanding is correct).

Therefore, how can I execute it and keep it running on the server?

1
  • Dont know much more about HelioHost server but I think you can use cron job for the same. IT will solve your problem. Commented Mar 9, 2018 at 14:32

1 Answer 1

2

If it has to generate a graph, I suspect that it should do so periodically, not constantly. For that kind of scenario, cron is your friend. Set up a cron job to run the script periodically. A crontab entry to execute your script every minute could look like this:

* * * * * /path/to/script
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.