Applications
Configure scripts to run manually
TX54 User Guide
678
Command line
1. Log into the TX54 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:
n
To log the script's output to the system log:
(config system schedule script 0)> syslog_stdout true
(config system schedule script 0)>
Содержание TX54
Страница 1: ...TX54 User Guide Firmware version 22 2 ...
Страница 190: ...Interfaces Bridging TX54 User Guide 190 ...
Страница 293: ...Hotspot Hotspot configuration TX54 User Guide 293 ...
Страница 332: ...Hotspot Show hotspot status and statistics TX54 User Guide 332 ...
Страница 584: ...Services Simple Network Management Protocol SNMP TX54 User Guide 584 4 Click Download ...
Страница 1069: ...Command line interface Command line reference TX54 User Guide 1069 reboot Reboot the system Parameters None ...