Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question
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
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.
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.