FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14110 questions

16770 answers

27533 comments

53890 members

0 votes
438 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