Applications
Configure scripts to run manually
LR54 User Guide
769
3. Click
System
>
Scheduled tasks
>
Custom scripts
.
4. For
Add Script
, click
.
The script configuration window is displayed.
Custom scripts are enabled by default. To disable, toggle off
Enable
to toggle off.
5. (Optional) For
Label
, provide a label for the script.
6. For
Run mode
, select
Manual
.
7. For
Commands
, type the commands that will execute the script.
n
If a Python script is being used, include the full path to the Python script. For example:
python /etc/config/scripts/test.py
n
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
).
8. Script logging options:
a. Click to enable
Log script output
to log the script's output to the system log.
b. Click to enable
Log script errors
to log script errors to the system log.
If neither option is selected, only the script's exit code is written to the system log.