qacafe - ip test solutions
Knowledge Base > Basic Configuration > Can I run multiple startup scripts with the RestartDut testvar?

Can I run multiple startup scripts with the RestartDut testvar?

Starting with CDRouter 4.1, the testvar RestartDut supports execution of multiple startup scripts or commands. To utilize this functionality, each command must be separated with a semi-colon.

For example, assume two scripts have been written to control the device under test (DUT). One script reconfigures the DUT and is located in /home/lab/scripts/reconfigure. The second script reboots the DUT and is located in/home/lab/scripts/reboot. Both of these scripts can be called at the start of a test run using the RestartDut testvar:

   testvar RestartDut "/home/lab/scripts/reconfigure; sleep 30;/home/lab/scripts/reboot"

Note that a delay of 30 seconds using the Linux sleep was also inserted between the execution of each script in the above example.