Applications
Develop Python applications
LR54 User Guide
729
viii. For
Commands
, type
python /etc/config/scripts/showsystem.py
.
ix. Click
Apply
to save the configuration and apply the change.
Command line
i. 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.
ii. At the command line, type
config
to enter configuration mode:
> config
(config)>
iii. Add an application entry:
(config)> add system schedule script end
(config system schedule script 0)>
Scheduled scripts are enabled by default. To disable:
(config system schedule script 0)> enable false
(config system schedule script 0)>
iv. Provide a label for the script:
(config system schedule script 0)> label "Show system application"
v. Configure the application to run automatically when the device reboots:
(config system schedule script 0)> when boot
(config system schedule script 0)>
vi. Configure the application to restart if it crashes:
(config system schedule script 0)> exit_action restart
(config system schedule script 0)>
vii. Set the command that will execute the application:
(config system schedule script 0)> commands "python
/etc/config/scripts/showsystem.py"
(config system schedule script 0)>
Содержание TransPort LR54
Страница 1: ...LR54 User Guide Firmware version 22 8 ...
Страница 506: ...Virtual Private Networks VPN OpenVPN LR54 User Guide 506 5 Click Apply to save the configuration and apply the change ...
Страница 628: ...Services Simple Network Management Protocol SNMP LR54 User Guide 628 The SNMP page is displayed 4 Click Download ...
Страница 1050: ...Command line interface Execute a command from the web interface LR54 User Guide 1050 The Admin CLI prompt appears ...
Страница 1095: ...Command line interface Command line reference LR54 User Guide 1095 reboot Reboot the system Parameters None ...