Owners manual

9: Administration
SGX 5150 IoT Device Gateway User Guide 77
Applications
The SGX 5150 supports the ability to install and uninstall user-defined Python scripts and
packages and will include the following:
Table 9-2 contains the setting options for configuring, installing, uninstalling and running external
applications via Python scripts.
Caution: Use extreme caution when installing and running scripts.
Table 9-2 Script Settings
To Configure Application Settings
Using Web Manager
To configure application scripts, go to the Network page and click Applications on the menu.
bin python
lib
libpython{version}.so
<ltrx python sdk>
libpython{version}
"python precompiled scripts
"python shared libraries
Script Settings Description
Script (Number) Click the Run button to manually execute the script.
Note: The script is run with configuration saved to the Flash.
Enabled
(checkbox)
Check the Enabled checkbox within a particular script to enable it. Uncheck the
checkbox to disable the script.
Run on startup
(checkbox)
Check the Run on startup checkbox within a particular script to have it run upon the
start up of the SGX 5150 unit. Uncheck the checkbox to disable automatically
running the unit upon startup.
Run on shutdown
(checkbox)
Check the Run on shutdown checkbox within a particular script to have it run on
shutdown of the SGX 5150 unit. Uncheck the checkbox to disable automatically
running the script upon shutdown.
Script Enter the path of the script to run.
Parameter Enter the script parameters (if any).
Output Enter output log file (if desired) for the script to redirect output of script to file. If the
name of output log contains "
%t", it will translate it into time stamp (e.g.,
script1_%t.log => script1_2007-01-02_19-06-57.log)
Uninstall (button) Click the Uninstall button in a Python package to uninstall it.
Remove All
(button)
Click the Remove All button to uninstall all Python packages.
Filename (field) Enter the package file name pathway in the file system and click the Install button to
install it.