How to execute a python script

Discussion of applications not mentioned above.
Locked
giannpls
Posts: 2
Joined: 12 Apr 2020, 05:21

How to execute a python script

Post by giannpls »

I installed python on my F2-220 hoping I can use it to automate some filesystem tasks. However I could not find any way to actually launch python in order to execute the code in a py file. Is there a way to do this? Or what is the point of installing python?
User avatar
TMroy
TerraMaster Team
Posts: 2598
Joined: 10 Mar 2020, 14:04
China

Re: How to execute a python script

Post by TMroy »

Hi giannpls,
To launch py file, you need to add command '#!/usr/bin/python' at first line of your py file. For more information, please visit
https://www.python.org/about/gettingstarted/
To contact our team, please send email to following addresses, remember to replace (at) with @:
Support team: support(at)terra-master.com (for technical support only)
Service team: service(at)terra-master.com (for purchasing, return, replacement, RMA service)
giannpls
Posts: 2
Joined: 12 Apr 2020, 05:21

Re: How to execute a python script

Post by giannpls »

Hi TMroy,

Thanks for your response. My confusion was due to lack of a terminal type application when using the web UI. Once I realized I could log in through telnet I was able to get it working. Thanks for your tip though.
Locked