python python

Devices

This command is supported in Connectport X Family products only.

supported

 

Purpose

Manually executes a Python program from the command line.

 

The “python” command is similar to a command executed on a PC.

 

However, other than a program name and arguments for the program, the

 

command takes no arguments itself, and is currently unable to spawn an

 

interactive session.

Syntax

python [(TFTP server ip):]filename [program args...]

Options

[(TFTP server ip):]filename

 

The main file to be executed. This file can be either a file on the file

 

system accessed through the Web UI, or a file accessible through a

 

TFTP server on the network. This TFTP functionality reduces the number

 

of times that you may need to place a program on the file system while

 

developing and refining functionality. However, the TFTP behavior only

 

works for the main program. Modules and packages must still be present

 

on the file system to be used.

 

program args...

 

Arguments to be supplied to the program.

See also

• The Digi Python Programming Guide to learn more about the Python

 

programming language as implemented in Digi products, and writing

 

Python programs.

 

"set python" on page 183 to manually execute a Python program.

58

Chapter 2 Command Descriptions

Page 58
Image 58
Digi 90000566_H manual Tftp server ipfilename, Program args