FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12691 questions

15070 answers

24150 comments

47148 members

0 votes
364 views 1 comments
by

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 

1 Answer

+1 vote
by

Hello,

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.

by
Hello,

Thank you for your quick answer and for the advice I will heck on the link you post.

Regards