Hacker News new | past | comments | ask | show | jobs | submit login

If you can't recompile the program, an expect script will come very handy:

  $ ./unbuffer ./tst >/tmp/logit 2>&1; cat /tmp/logit
  line 1
  stderr line 1
  line 2
  stderr line 2
http://expect.nist.gov/example/unbuffer



Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: