subscribe to our Youtube
14110 questions
16770 answers
27533 comments
53890 members
Hello,
I have the following problem:
I want to run a persistan script that ask to a satellite data unit the status and sent it commands depending that status. My question is how to create a script as a services to keep the code all the time running?
For what I read when the script is placed in rc.local this is execute just once. I found this post recommending to use crontab.
How to run custom script in background - Crowd Support Forum | Teltonika Networks (teltonika-networks.com)
What are your recommendations?
Thanks
I do recommend using crontab too: https://wiki.teltonika-networks.com/view/Crontabs
Also, I would suggest inserting a while function in your script which will keep it running while a certain value meets requirements.
There are various suggestions on how to keep shell scripts running continuously in StackOverflow or other forums.
Regards.