Digi IX40 User Manual page 666

Table of Contents

Advertisement

Applications
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)>
viii. Save the configuration and apply the change:
(config)> save
Configuration saved.
>
b. Run the showsystem.py application. You can run the application by either rebooting the
device, or by running it from the shell prompt.
n
n
IX40 User Guide
To reboot the device:
i. From the WebUI:
i. From the main menu, click System.
ii. Click Reboot.
i. From the command line, at the Admin CLI prompt, type:
> reboot
To run the application from the shell prompt:
i. Select a device in Remote Manager that is configured to allow shell access to
the admin user, and click Actions > Open Console. Alternatively, log into the
IX40 local 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.
ii. Type the following at the shell prompt:
# python /etc/config/scripts/showsystem.py &
#
iii. Exit the shell:
# exit
Develop Python applications
666

Advertisement

Table of Contents
loading

Table of Contents