Applications
Run a Python application at the shell prompt
LR54 User Guide
765
1. Upload the Python application to the LR54 device:
Web
a. Log into the LR54 WebUI as a user with Admin access.
b. On the menu, click
System
. Under
Administration
, click
File System
.
The
File System
page appears.
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. Select the device in Remote Manager and click
Actions
>
Open Console
, or log into the
LR54 local command line as a user with full Admin access rights.
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
command to upload the Python application script to the
LR54 device:
> scp host
hostname-or-ip
user
username
remote
remote-path
local
local-path
to local
where:
n
hostname-or-ip
is the hostname or ip address of the remote host.
n
username
is the name of the user on the remote host.
n
remote-path
is the path and filename of the file on the remote host that will be
copied to the LR54 device.
n
local-path
is the location on the LR54 device where the copied file will be placed.