Getting value from shell scripts
Randeep
randeep123 at gmail.com
Thu Oct 22 12:17:03 CEST 2015
No. I'm new to this. Reading it.
Thanks.
On Thu, Oct 22, 2015 at 3:38 PM, Fajar A. Nugraha <list at fajar.net> wrote:
> Then on your script, simply echo Attribute-Name = Some-Value
>
> The config SHOULD then be able to use &<list>:Attribute-Name where "list"
> is "reply".
>
> You DO know about unlang, don't you?
> http://freeradius.org/radiusd/man/unlang.html
>
> Look for "ATTRIBUTE REFERENCES".
>
>
> On Thu, Oct 22, 2015 at 5:00 PM, Randeep <randeep123 at gmail.com> wrote:
>
> > No fajar.
> >
> > I have wrote a comparison in default file.
> >
> > I wrote this script only to get a value from a file which will be created
> > by Mikrotik nas.
> >
> > After reading this value and doing the comparison, function in the
> default
> > file will send a coa update to apply FUP.
> >
> > Regards,
> > Randeep
> >
> > On Thu, Oct 22, 2015 at 3:26 PM, Fajar A. Nugraha <list at fajar.net>
> wrote:
> >
> > > On Thu, Oct 22, 2015 at 4:52 PM, Randeep <randeep123 at gmail.com> wrote:
> > >
> > > > Yes I did.
> > > >
> > > > echo "Reply-Message += \"Hello, %u\","
> > > > echo "Reply-Message += \"PATH=$PATH\","
> > > > echo Framed-IP-Address = 255.255.255.255
> > > > exit 0
> > > >
> > > > I'm not getting it.
> > > >
> > > >
> > > Those are attributes that would go to reply (i.e. sent from radius to
> the
> > > NAS). Remeber "output_pairs = reply"?
> > >
> > > If by "apply FUP" you mean "have X attribute in reply items with value
> > Y",
> > > then simply
> > >
> > > echo X = Y
> > >
> > > If you DON'T want to apply FUP, you don't echo that. It should be that
> > > simple.
> > >
> > > --
> > > Fajar
> > > -
> > > List info/subscribe/unsubscribe? See
> > > http://www.freeradius.org/list/users.html
> > >
> >
> >
> >
> > --
> > Randeep
> > Mob: +919447831699[kerala]
> > Mob: +919880050349[B'lore]
> > http://twitter.com/Randeeppr
> > http://in.linkedin.com/in/randeeppr
> >
> > [image: --]
> > Randeep Raman
> > [image: http://]about.me/Randeeppr
> > <http://about.me/Randeeppr>
> > -
> > List info/subscribe/unsubscribe? See
> > http://www.freeradius.org/list/users.html
> >
> -
> List info/subscribe/unsubscribe? See
> http://www.freeradius.org/list/users.html
>
--
Randeep
Mob: +919447831699[kerala]
Mob: +919880050349[B'lore]
http://twitter.com/Randeeppr
http://in.linkedin.com/in/randeeppr
[image: --]
Randeep Raman
[image: http://]about.me/Randeeppr
<http://about.me/Randeeppr>
More information about the Freeradius-Users
mailing list