I'm logging the output of a command with
command | tee file
This causes tee
to actually write to the disk every second or so. I'd like to reduce the frequency of the writes, by caching the output more.
I know this can be done at the system level, for all processes, but is there a simple way to do this at the user level, just for this process?
(Having tee
write to ramdisk
and then having another process periodically copy the output; or modifying tee
itself seem overly complicated)