Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
crc5002
on April 16, 2010
|
parent
|
context
|
favorite
| on:
How to write to stderr so people will like you
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: