Both lru and btlru support the ability to be scripted. Whenever a cmd and set of paramters are passed in from the console command line, btlru/lru will run the test and then exit rather than transitioning into the btlru/lru command line. In order to run the test for a certain amount of time, include the -w <seconds> option to inform btlru/lru how long to run the test before turning the test off and exiting.

In addition when running in script mode, the config submenu options can be passed in from the console command line.

# lru tx -c 1 -r 6 -d IC -w 10
Laird LWB+/LWB5+ Regulatory Utility
Using wireless device wlan0 (6)
Module type: Single Antenna
Running in script mode...
Running Test:   Continuous Tx
Reg Domain:     IC
Antenna:        ANT0
Channel:        1
Rate:           6
Bandwidth:      20 MHz
Regulatory testing complete.