[ < ] | [ > ] | [ << ] | [ Up ] | [ >> ] | [Top] | [Contents] | [Index] | [ ? ] |
You can set any radtest
variable from the command line.
There are two ways of doing so.
First, you can use variable assignment option ‘--assign’ (or ‘-a’). Its syntax is:
--assign variable=text -a variable=text |
For example:
radtest -a foobar=5 |
Another way is useful when you load a radtest
program by
‘--file’ or ‘-f’. This second way consists in including
a variable assignment in the form
variable=text |
in the command line after the script name. For example:
radtest -f myprog.rad foo=5 addr=127.0.0.1 |
This method is especially useful for executable scripts that are
run using #!
shell magic. Consider a simple script:
#! /usr/local/bin/radtest -f print $addr |
The value of addr can be given to the script from the command line as in the example below:
myprog.rad addr=127.0.0.1 |
This document was generated by Sergey Poznyakoff on December, 6 2008 using texi2html 1.78.