Re: remove the white space

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 ...


Go Back   Usenet Forums > Networking and Network Related > FreeRADIUS Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-07-2007
Ashraf Al-Basti
 
Posts: n/a
Default Re: remove the white space

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:&nbsp; '/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>
&nbsp; modcall[pre-proxy]: module "DB" returns ok for request 0<br>
radius_xlat:&nbsp; 'wanadoo'<br>
radius_xlat: Running registered xlat function of module exec for string
'/bin/cat /var/www/html/user | tr -d&nbsp; '<br>
rlm_exec (exec): Executing /bin/cat /var/www/html/user | tr -d<br>
radius_xlat:&nbsp; '/bin/cat /var/www/html/user | tr -d&nbsp; '<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:&nbsp; ''<br>
&nbsp;<br>
<br>
Bj&oslash;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">&lt;Ashraf. Albasti@jt.net.jo&gt;</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&oslash;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==--
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:39 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0