ENV variables in external scripts

rsg ranil.santhish at gmail.com
Fri Mar 7 15:59:38 CET 2008


Hi,

I need to check an environmental varible with an external script.

For example to capture Calling-Station-Id and check it in an external
database using a perl script

# ../users
:
.
DEFAULT Auth-Type = None
        Exec-Program-Wait = "/root/check.pl %i",
        Reply-Message := "Valid Caller-Id, access granted ->
%{Calling-station-Id}",
        Fall-Through = Yes
:
.

How could I call this ENV variable in my perl script ("/root/check.pl) ?

I unsuccessfully attempted the options given by ../docs/variables.txt.
Please help with the correct syntax.

Thanks in advance.

rsg



More information about the Freeradius-Users mailing list