Home » Questions » Computers [ Ask a new question ]

When re-directing to a file in linux tcsh, how can I change the write buffer size to be larger?

When re-directing to a file in linux tcsh, how can I change the write buffer size to be larger?

In linux tcsh, if I am creating a log file like:

Asked by: Guest | Views: 126
Total answers/comments: 1
Guest [Entry]

"you can use 'pv' to 'throttle' whats beeing piped through.

-B BYTES, --buffer-size BYTES
Use a transfer buffer size of BYTES bytes. A suffix of
""k"", ""m"", ""g"", or ""t"" can be added to denote kilobytes (*1024),
megabytes, and so on. The default buffer size is the block
size of the input file's filesystem multiplied by 32 (512kb max),
or 400kb if the block size cannot be determined.

applied to your given example it would look like:

% CMD | pv -B 1m > cmd.log"