Hi, when i try to use `tr -d \n` it always failed with this error
odcall: entering group pre-proxy for request 0
radius_xlat: '/bin/bash /var/www/html/Test 11111111111111'
Exec-Program: /bin/bash /var/www/html/Test 11111111111111
Exec-Program output:
Exec-Program: returned: 0
modcall[pre-proxy]: module "DB" returns ok for request 0
radius_xlat: 'wanadoo'
radius_xlat: Running registered xlat function of module exec for string
'/bin/cat /var/www/html/user | tr -d '
rlm_exec (exec): Executing /bin/cat /var/www/html/user | tr -d
radius_xlat: '/bin/cat /var/www/html/user | tr -d '
Exec-Program: /bin/cat /var/www/html/user | tr -d
/bin/cat: invalid option -- d
Try `/bin/cat --help' for more information.
Exec-Program output:
Exec-Program: returned: 1
rlm_exec (exec): result 1
radius_xlat: ''
Bjørn Mork wrote:
Ashraf Al-Basti <[EMAIL PROTECTED]> writes:
Thanks, but if i want to read from file using cat how to do that?
a) don't write the \n to the file in the first place, or
b) pipe the output through `tr -d \n`, or
c) write a simple script to read the file and preprocess the data as
you like before feeding it to freeradius
Bjørn
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html
-
List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html