Hello Brandon -

On Wed, 20 Sep 2000, Brandon wrote:
> How do you save a variable global in a StartupHook so that
> you can reference it in a PreHandlerHook.
> 
> Here is a simple example:
> 
> StartupHook  sub {\
>     $variable = 1;\
> }
> 
> <Client xxx.xxx.xxx.xxx>
> PreHandlerHook sub {\
>      if ($variable = 1) { do something }\
> }
> </Client>
> 
> Problem is, that whenever I try to reference the $variable in the
> PreHandlerHook it does not remember it from the
> startup hook.   Any ideas?
> 

There is an example showing how to use GlobalVar's in the example hooks in
"goodies/hooks.txt" in the Radiator 2.16.3 distribution.

hth

Hugh


-- 
Radiator: the most portable, flexible and configurable RADIUS server 
anywhere. SQL, proxy, DBM, files, LDAP, NIS+, password, NT, Emerald, 
Platypus, Freeside, Interbiller, TACACS+, PAM, external, etc, etc.
Available on Unix, Linux, FreeBSD, Windows 95/98/2000, NT, MacOS X.



===
Archive at http://www.starport.net/~radiator/
Announcements on [EMAIL PROTECTED]
To unsubscribe, email '[EMAIL PROTECTED]' with
'unsubscribe radiator' in the body of the message.

Reply via email to