FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

14164 questions

16818 answers

27654 comments

54096 members

0 votes
2,234 views 2 comments
by
is it posible to define trought user script an function similar to Periodic control ( Chapter 9.20.3.6 Periodic Control)  for DOUT2 but with more line for specific dates from year not only for days of week?

Could you give example please?

Kind regards

Ionut LAR

1 Answer

0 votes
by

Hello,

It possible and you don't even need to write a script. You can use crontab for this. There is a guide on how to set up crontabs in Teltonika's Wiki.

To flip the value of DOUT2, you will need to use the gpio.sh command.

Best answer
by
thank you for your answer.

will crontab be runned automaticaly at router reboot ?
by

You don't even need to restart anything. It will work once you add the rule(s). Info from the cron man page:

"...cron will then examine the modification time on all crontabs and reload those which have changed. Thus cron need not be restarted whenever a crontab file is modified"