Services and applications Auto-run commands
Digi TransPort WR Routers User Guide
151
Auto-run commands
Auto-run commands are commands that are automatically run at boot-up. You can use auto-run
commands for such tasks as:
n Starting a Python program
n Switching between configuration files
n Scheduling a reboot
The TransPort supports up to 10 auto-run commands. See autorun for details.
Required configuration items
Configure the command that is to be automatically run at bootup. See Use multiple configuration files
to test configurations on remote devices for an example of using autorun commands to safely test
configurations on a remote device.
Example: Update the configuration from file config.da0
1. Type the following command:
digi.router> autorun 1 command “update config config.da0”
2. Save the configuration.
digi.router> save config
Example: Run a timed reboot
1. Type the following command:
digi.router> autorun 2 command “reboot in 5”
2. Save the configuration.
digi.router> save config