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

Allow output to non-tty STDOUT #17

Open
VarunKoyyalagunta opened this issue Dec 31, 2021 · 0 comments
Open

Allow output to non-tty STDOUT #17

VarunKoyyalagunta opened this issue Dec 31, 2021 · 0 comments

Comments

@VarunKoyyalagunta
Copy link

I want to run rmem in a scripted batch mode, by creating a file containing a list of commands and be able to do something like this -

cat file.cmd | ./rmem ... | tee log

(It's more complicated by the fact that I'm running the ./rmem ... part inside a container, but that doesn't really matter)

If I compile with UI=headless, rmem accepts input from a STDIN pipe. However I can't redirect STDOUT. I get the following error -

Output is not a terminal, '-interactive true' is not allowed.
  Use '-interactive false'

Removing the check, like so, achieves what I want -
VarunKoyyalagunta@8f0da61

I thought of creating some sort of -batch switch instead to override the check, but I'm not sure how useful the check is to begin with and removing it seemed easier.

If the above change is okay, I can create a PR. Or, if you prefer an additional switch like -batch, I can code that.

@VarunKoyyalagunta VarunKoyyalagunta changed the title Allow output to STDOUT Allow output to non-tty STDOUT Dec 31, 2021
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

1 participant