Page 1 of 1
How to execute a python script
Posted: 12 Apr 2020, 05:27
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?
Re: How to execute a python script
Posted: 12 Apr 2020, 13:07
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/
Re: How to execute a python script
Posted: 26 Apr 2020, 02:14
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.