2010/3/17 Sergio Belkin <seb...@gmail.com>:
> Hi, I have a simple script as follows:
>
> #! /bin/bash
> echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 16" |
> radclient localhost:18120 status YellowSubmarine | tee
> /var/log/radius/status-"$(date -d "yesterday" +%Y%m%d)".log
> #echo "Message-Authenticator = 0x00, FreeRADIUS-Statistics-Type = 1" |
> radclient localhost:18120 status YellowSubmarine | tee -a
> /var/log/radius/status-"$(date -d "yesterday" +%Y%m%d)".log
>
>
> When I run on the shell do it fine, but when it is launched by root it
> fails, resulting in:
>
> radclient: dict_init:
> /usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
> attribute name too long
> radclient: dict_init:
> /usr/local/share/freeradius/dictionary.freeradius[47]: dict_addattr:
> attribute name too long
>
>
> crontab line is as follows:
>
> 58 9 * * * root /scripts/getRadiusStatus > /tmp/whatsup 2>&1
>
> Please could you help to solve it?
>
> Thanks in advance
> --
Sorry,  I fix myself I wanted to mean "radclient" on subject and
launched by cron...

-- 
--
Sergio Belkin http://www.sergiobelkin.com
Watch More TV http://sebelk.blogspot.com
Sergio Belkin -
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html

Reply via email to