Digi Connect IT 4 User Manual page 643

Hide thumbs Also See for Connect IT 4:
Table of Contents

Advertisement

Applications
a. On the menu, click System. Under Configuration, click Device Configuration.
The Configuration window is displayed.
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.
If a Python script is being used, include the full path to the Python script. For example:
n
python /etc/config/scripts/test.py
If the script begins with #!, then the script will be invoked in the location specified by
n
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.
9. For Maximum memory, enter the maximum amount of memory available to be used by the
script and its subprocesses, using the format number{b|bytes|KB|k|MB|MB|M|GB|G|TB|T}.
10. Sandbox is enabled by default, which restricts access to the file system and available
commands that can be used by the script. This option protects the script from accidentally
destroying the system it is running on.
Digi Connect IT® 4 User Guide
Configure scripts to run manually
643

Advertisement

Table of Contents
loading

Table of Contents