12

I have a program that takes a -o log_file option, which writes extra data to log_file.

Is there any way for me to redirect that to stdout?

i.e. is there a "special name" for stdout that can be used as a file name, like CONOUT$ on Windows?

16

Usually, programs write automatically to stdout if you don't specify a -o option. In the case you must go through the -o option, you can use -o /dev/stdout.

  • Ahhh /dev/stdout is exactly what I needed. Thank you!! :) – Mehrdad Jul 30 '11 at 21:32
  • 3
    And I won't call that "redirection" but just "direction" :-) – Stéphane Gimenez Jul 30 '11 at 21:32
  • 1
    Lol whatever you say :) – Mehrdad Jul 30 '11 at 21:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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