This is a discussion on Re: remove the white space within the FreeRADIUS Users forums, part of the Networking and Network Related category; This is a multi-part message in MIME format. --===============1893218156== Content-type: multipart/alternative; boundary="Boundary_(ID_l9fjmaOVGwG9nUUq4t2X2A)" This ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
This is a multi-part message in MIME format.
--===============1893218156== Content-type: multipart/alternative; boundary="Boundary_(ID_l9fjmaOVGwG9nUUq4t2X2A)" This is a multi-part message in MIME format. --Boundary_(ID_l9fjmaOVGwG9nUUq4t2X2A) Content-type: text/plain; charset=ISO-8859-1; format=flowed Content-transfer-encoding: 8BIT 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 <Ashraf.Albasti@jt.net.jo> 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 > > > --Boundary_(ID_l9fjmaOVGwG9nUUq4t2X2A) Content-type: text/html; charset=us-ascii Content-transfer-encoding: 7BIT <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type"> <title></title> </head> <body bgcolor="#ffffff" text="#000000"> Hi, when i try to use `tr -d \n` it always failed with this error<br> <br> odcall: entering group pre-proxy for request 0<br> radius_xlat: '/bin/bash /var/www/html/Test 11111111111111'<br> Exec-Program: /bin/bash /var/www/html/Test 11111111111111<br> Exec-Program output:<br> Exec-Program: returned: 0<br> modcall[pre-proxy]: module "DB" returns ok for request 0<br> radius_xlat: 'wanadoo'<br> radius_xlat: Running registered xlat function of module exec for string '/bin/cat /var/www/html/user | tr -d '<br> rlm_exec (exec): Executing /bin/cat /var/www/html/user | tr -d<br> radius_xlat: '/bin/cat /var/www/html/user | tr -d '<br> Exec-Program: /bin/cat /var/www/html/user | tr -d<br> /bin/cat: invalid option -- d<br> Try `/bin/cat --help' for more information.<br> Exec-Program output:<br> Exec-Program: returned: 1<br> rlm_exec (exec): result 1<br> radius_xlat: ''<br> <br> <br> Bjørn Mork wrote: <blockquote cite="mid871wl333oc.fsf@obelix.mork.no" type="cite"> <pre wrap="">Ashraf Al-Basti <a class="moz-txt-link-rfc2396E" href="mailto:Ashraf.Albasti@jt.net.jo"><Ashraf. Albasti@jt.net.jo></a> writes: </pre> <blockquote type="cite"> <pre wrap="">Thanks, but if i want to read from file using cat how to do that? </pre> </blockquote> <pre wrap=""><!----> 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 <a class="moz-txt-link-freetext" href="http://www.freeradius.org/list/users.html">http://www.freeradius.org/list/users.html</a> </pre> </blockquote> </body> </html> --Boundary_(ID_l9fjmaOVGwG9nUUq4t2X2A)-- --===============1893218156== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline - List info/subscribe/unsubscribe? See http://www.freeradius.org/list/users.html --===============1893218156==-- |