Computing.Net > Forums > Unix > changing col(1) command stdout buf?

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

changing col(1) command stdout buf?

Reply to Message Icon

Name: sunilsbjoshi
Date: June 9, 2006 at 03:02:17 Pacific
OS: LINUX
CPU/Ram: intel p4
Product: p4
Comment:

Hi All,

I am talking about unix col(1) command used for some reverse line filtering etc.
And I notice that the stdout of this command is line buffered i.e. the stdout will flush the data in its buffer line by line. So the number of writes performed by stdout are more.

So now if I make stdout as fully buffered it will reduce the write hits. :)

But if I do these changes I think there will some problems
-> when slow terminals use col(1) as command , then the turn around time will get reduce for it self.
eg: cat file | col -b | lp
Here lp will receive data in terms of buffer size but before it was receving in terms of each lines.

So can I change change col(1) command's stdout to fully buffered?

So do any of you know some more problems related with this change , and can I see some link about col(1) command design stating that it should be either line buffered or fully buffered etc.


Waiting for positive replay,
Sunil kumar.

--
Thanks & Regards,

Sunil Kumar S




Sponsored Link
Ads by Google

Response Number 1
Name: lchi2000g
Date: June 9, 2006 at 08:13:55 Pacific
Reply:

Linux:

col [-bfpx] [-l num]

-lnum Buffer at least num lines in memory. By default, 128 lines are
buffered.


Luke Chi


0

Response Number 2
Name: lchi2000g
Date: June 9, 2006 at 08:37:14 Pacific
Reply:

Linux is an open source. Download the source code and read "col" command.

Luke Chi


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: changing col(1) command stdout buf?

run unix command thr java program www.computing.net/answers/unix/run-unix-command-thr-java-program-/5887.html

script for changing file names www.computing.net/answers/unix/script-for-changing-file-names/6732.html

Sort problem www.computing.net/answers/unix/sort-problem/4691.html