Digi IX20-WAG4 User Manual page 532

Table of Contents

Advertisement

Applications
  Command line
1. Log into the IX20 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.
2. At the command line, type config to enter configuration mode:
> config
(config)>
3. Add a script:
(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)>
4. (Optional) Provide a label for the script.
(config system schedule script 0)> label value
(config system schedule script 0)>
where value is any string. if spaces are used, enclose value within double quotes.
5. Set the run mode to manual:
(config system schedule script 0)> when manual
(config system schedule script 0)>
6. Set the commands that will execute the script:
(config system schedule script 0)> commands filename
(config system schedule script 0)>
where filename is the path and filename of the script, and any related command line
information.
If the script begins with #!, then the script will be invoked in the location specified by the path
for the script command. Otherwise, the default shell will be used (equivalent to #!/bin/sh).
7. Script logging options:
To log the script's output to the system log:
n
(config system schedule script 0)> syslog_stdout true
(config system schedule script 0)>
IX20 User Guide
Configure scripts to run manually
532

Advertisement

Table of Contents
loading

This manual is also suitable for:

Ix20

Table of Contents