FOR TIPS, gUIDES & TUTORIALS

subscribe to our Youtube

GO TO YOUTUBE

12657 questions

15038 answers

24075 comments

46988 members

0 votes
24 views 0 comments
by
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
ago by

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,