FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14455 questions

17168 answers

28195 comments

0 members

We are migrating to our new platform at https://community.teltonika.lt. Moving forward, you can continue discussions on this new platform. This current platform will be temporarily maintained for reference purposes.
0 votes
652 views 1 comments
by anonymous

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 anonymous

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 anonymous
Hello,

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

Regards