Take the 2-minute tour ×
Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

When I use 'script' on a unix terminal the -f option flushes the data straight to the file - from the man page "-f Flush output after each write. This is nice for telecooperation: One person does mkfifo foo; script -f foo' and another can supervise real-time what is being done usingcat foo'."

This is a really handy option for me - but the version of the script command on my mac appears to be lacking this option. Are there any ways I can achieve the functionality?

Can't you achive the same result with script -t 0? –  patrix Jan 27 '12 at 22:40
of course! Thank you - do you want to make that an answer so I can accept it? –  Joe Jan 28 '12 at 8:41

1 Answer 1

up vote 3 down vote accepted

You can achieve more or less the same result by running

script -t 0

From the man page:

-t time  Specify time interval between flushing script output file.
         A value of 0 causes script to flush for every
         character I/O event.  The default interval is 30 seconds.

This site is currently not accepting new answers.

Not the answer you're looking for? Browse other questions tagged .