Log in Sign up
1 Matching Annotations
  1. Apr 2021
  2. stackoverflow.com stackoverflow.com
    How to trick an application into thinking its stdout is a terminal, not a pipe
    1
    1. TylerRick 14 Apr 2021
      in Public
      If there are some pipe between these commands, you need to flush stdout. for example: script -q /dev/null commands... | ruby -ne 'print "....\n";STDOUT.flush'
      command-line: buffering command-line: buffering: flush stdout Ruby Linux command line
    Visit annotations in context

    Tags

    • Linux command line
    • Ruby
    • command-line: buffering: flush stdout
    • command-line: buffering

    Annotators

    • TylerRick

    URL

    stackoverflow.com/questions/1401002/how-to-trick-an-application-into-thinking-its-stdout-is-a-terminal-not-a-pipe
Share:
Group. Only group members will be able to view this annotation.
Only me. No one else will be able to view this annotation.
Hypothes.is
  • About
  • Blog
  • Bioscience
  • Education
  • Jobs
  • Help
  • Contact
  • Terms of Service
  • Privacy Policy