I am new Digi python programming , I have following question about python script …
Please help me
I have upload a python script with web browser to gateway , and runnning it with telnet command, python ***.py, But this script file is a while loop that run forever, if I want to kill it for modify , what shoud I do ? Using another telnet
connect to the gateway with kill command ?
is there a vi editor inside the gateway ? , when I using
telnet , I can not use vi in this box
There is not a way built into the system to kill scripts that are running. However, for debugging purposes at least, it’s usually not to hard to build into the script itself a way to cause it to exit. What some of the demo apps do is place listen socket on a port, and cause the script to exit if they receive a connection on that port. Certainly not something that you want to leave in a final product, but adequate for testing.
There is no editor in the box. You’ll have to edit your scripts on another machine and then upload them.
On the X4 under Management/Connections each excuting python script shows up as an active system connection. The UI provides a mechanism to select one and delete it however I have not had any success with this.
Either I am not using this correctly or there is a bug in the GW software.