Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #356650
    Anonymous
    Participant

    I want to redirect the output from a command to a file. fine no problem except when you do this the output is buffered and does not actually get written until the buffer is flushed. I want to be able to read the file with another process while the first is going on. but I am not seeing the output as expected. is there a way force a no buffer when you redirect a processes output to a file?

    #356652
    Anonymous
    Participant

    for exampe:

    hdiutil burn ~/Desktop/backup.dmg -noverifyburn -eject -testburn > ~/Desktop/arcresults 2>&1 &

    now while that is in the background I want to read from ~/Desktop/arcresults
    but the buffered so I see the output late.

    dave

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.

Comments are closed