You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@accumulo.apache.org by "jschmidt10 (via GitHub)" <gi...@apache.org> on 2023/06/09 13:05:21 UTC
[GitHub] [accumulo] jschmidt10 commented on issue #3446: Shell output going to stderr rather than stdout w/ jline-3.22.0
jschmidt10 commented on issue #3446:
URL: https://github.com/apache/accumulo/issues/3446#issuecomment-1584546537
@ctubbsii I don't believe we have a case where both streams were leveraged. We were using the shell with some of our test utilities and parsing stdout for things like gathering table names. With JLine 3.22.0, now that it's defaulting to stderr, our utilities that were parsing the output no longer work without hacking in a `2>&1` everywhere we use the shell's output. So an example of something we would do is:
```
for table in $(accumulo shell -u *** -p *** -e "tables -np" | grep regression_test_); do
// do something with your test table
done
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@accumulo.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org