1) Upload the script on the TransPort via WEB GUI
In the WEB GUI, browse to Administration-File management > File editor, click in the Filename field (where there is "--edit--"):
![User-added image](https://818164.app.netsuite.com/core/media/media.nl?id=434277&c=818164&h=c001f09d73306bfbeb72)
Type a name for the script (for TestPy.py). Then, in the blank window below, paste the script content. Then click on Save File and then you should see:
![User-added image](https://818164.app.netsuite.com/core/media/media.nl?id=434059&c=818164&h=99e2f30c119ea79c733a)
Another method to load the python script into the TransPort is to use the FTP. Write the script into a file (a Python script is a text file containing python commands and may be created using a normal plain text editor) and give a name to it (as TestPy.py). Then open an FTP client as Filezilla, connect to the Transport IP with the username and password you use to access the WEB GUI.
Once connected, transfer the TestPy.py file to the TranSport, at the end of the transfer, you should see the file in the TransPort directory:
![User-added image](https://818164.app.netsuite.com/core/media/media.nl?id=434349&c=818164&h=1711c1cd155ea0f46e29)
In order to have the script running , go in the Administration – Execute command section of the WEB GUI (or in the command line) and type:
python TestPy.py
![User-added image](https://818164.app.netsuite.com/core/media/media.nl?id=434142&c=818164&h=c2f9a3fd88a9aff31e84)
It is also possible to make the script running also if the device reboots, going in the WEB GUI to Configuration - system > General, then in the autorun command section type the command
python TestPy.py
and click Add:
![User-added image](https://818164.app.netsuite.com/core/media/media.nl?id=434084&c=818164&h=f3a6a82c8071e3e7c3f2)
You should then see that the command is added:
![User-added image](https://818164.app.netsuite.com/core/media/media.nl?id=434393&c=818164&h=98d2fc8bae804a031e3a)
and click apply.
4) Check that the Python script is running
It is always possible to check which python script are running by issuing the following command:
pycfg scripts
In this case, the output of the command is the following:
![User-added image](https://818164.app.netsuite.com/core/media/media.nl?id=434168&c=818164&h=af285e73c286cef75e16)
Last updated:
Jan 08, 2024