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
1,301 views 2 comments
by anonymous
Hi,

I have a Python script which I will install on my RUTX50. Is that possible and how do I do it?

Thanks for helping!

1 Answer

0 votes
by anonymous

Hello,

Executing python scripts quite simple.

First you need to download and install python package with its dependencies. It can be achieved over SSH with the following commands:

  • pokg update
  • opkg install python3-light

Then simply upload/generate a script file and execute it with python command.

The question is rather, how/when do you want your script to be executed? Is it with each device boot, for which case you could place it in /etc/rc.local file, or with certain periodicity, which can be achieved using crontabs (more details here)? 

Best regards,

Best answer
by anonymous
Thank you for your answer. I will try it out soon and tell how it worked. I already installed the python package on my RUTX50.

Is there a hint how to connect over SSH?

Best regards
by anonymous

Please check the link below. It provides instructions for several approaches.

https://wiki.teltonika-networks.com/view/Command_Line_Interfaces

Best regards,