Digi Connect EZ Mini User Manual page 372

Firmware version 22.2
Hide thumbs Also See for Connect EZ Mini:
Table of Contents

Advertisement

Applications
c. Highlight the scripts directory and click  to open the directory.
d. Click  (upload).
e. Browse to the location of the script on your local machine. Select the file and click Open
to upload the file.
The uploaded file is uploaded to the /etc/config/scripts directory.
  Command line
a. Log into the Connect EZ command line as a user with Admin access.
Depending on your device configuration, you may be presented with an Access selection
menu. Type admin to access the Admin CLI.
b. At the command line, use the
Connect EZ device:
> scp host hostname-or-ip user username remote remote-path local
local-path to local
where:
n
n
n
n
For example:
To upload a script from a remote host with an IP address of 192.168.4.1 to the
/etc/config/scripts directory on the Connect EZ device, issue the following command:
> scp host 192.168.4.1 user admin remote /home/admin/bin/test.py local
/etc/config/scripts/ to local
admin@192.168.4.1's password: adminpwd
test.py
>
c. Type exit to exit the Admin CLI.
Depending on your device configuration, you may be presented with an Access selection
menu. Type quit to disconnect from the device.
Note
You can also create scripts by using the vi command when logged in with shell access.
2. Log into the Connect EZ command line as a user with shell access.
Depending on your device configuration, you may be presented with an Access selection
menu. Type shell to access the device shell.
3. Use the python command to run the Python application. In the following example, the Python
application, test.py, takes 3 parameters: 120, ports and storage:
# python /etc/config/scripts/test.py 120 ports storage
Digi Connect EZ Mini User Guide
scp
hostname-or-ip is the hostname or ip address of the remote host.
username is the name of the user on the remote host.
remote-path is the path and filename of the file on the remote host that will be
copied to the Connect EZ device.
local-path is the location on the Connect EZ device where the copied file will be
placed.
Run a Python application at the shell prompt
command to upload the Python application script to the
100%
36MB
11.1MB/s
00:03
372

Advertisement

Table of Contents
loading

Table of Contents