Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 13 Oct 2009 08:32:47 +0300
From:      Mikolaj Golub <to.my.trociny@gmail.com>
To:        Doug Barton <dougb@FreeBSD.org>
Cc:        freebsd-stable@freebsd.org
Subject:   Re: can't change tty speed and buffer size on 8.0
Message-ID:  <817huzj1ts.fsf@zhuzha.ua1>
In-Reply-To: <4AD3BB3E.5000809@FreeBSD.org> (Doug Barton's message of "Mon\, 12 Oct 2009 16\:26\:54 -0700")
References:  <861vla2ogy.fsf@kopusha.onet> <4AD3BB3E.5000809@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 12 Oct 2009 16:26:54 -0700 Doug Barton wrote:

> Mikolaj Golub wrote:
>> Hi,
>> 
>> On 8.0-RC1 if you run this command:
>> 
>> cat > /dev/null
>> 
>> and try to input a long line, the maximum length you can input is 1920
>> characters.
>> 
>> I have investigated a bit how I can increase a tty buffer as this is a problem
>> for me (I have logs with very long lines and I used to copy&past a particular
>> line into input of some script to structure it).
>
> I have no useful input on the buffer size issue, but if you wanted to
> post a bit of your script we may be able to help you find a different
> solution that doesn't involve cat. :)

Thanks, but cat was taken as a simple example just to illustrate the
problem. The real scripts are usually on perl with 'while(<>)' loop or 'perl
-ne' one liners. And sure I could find ways to workaround the problem and
actually this is what I did until ed@ provided the solution.

-- 
Mikolaj Golub



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?817huzj1ts.fsf>