Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EM checking for TTY??? #370

Closed
pdindak opened this issue Sep 26, 2012 · 0 comments
Closed

EM checking for TTY??? #370

pdindak opened this issue Sep 26, 2012 · 0 comments

Comments

@pdindak
Copy link

pdindak commented Sep 26, 2012

Working linux app using EM suddenly stops logging via redirection ex "app > log.txt". removing EM from the app and redirection works. Searching and debugging found this info:

http://stackoverflow.com/questions/4459077/output-redirection-doesnt-work-for-a-certain-program

"Based on your strace it sounds like the program is testing if stdin and/our stdout is a tty. I've never used it but you could try using empty.sourceforge.net. It's suppose to create a pseudo-tty which should fool your program's check."

Grabbed empty from sourceforge and "empty -F -L log.txt app" lets the logging work just fine.

This is with 12.10 and 1.0.0. Is there any check of this type by EM?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants