I locally applied https://github.com/lxc/lxc/commit/12752e2 to our current package and built it. Now it looks better:
# lxc-attach -n a runlevel N 5 # lxc-attach -n a runlevel </dev/null N 5 # lxc-attach -n a runlevel </dev/null 2>/dev/null N 5 # lxc-attach -n a runlevel </dev/null 2>/dev/null | cat So redirecting stdin only now does not show this "lxc_console_cb_tty_master: 683 Bad file" error any more, and redirecting stderr now works too. But redirecting stdout in addition still doesn't? Maybe I'm missing another fix from trunk, though. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1551960 Title: lxc-attach does not work any more with input redirection To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/lxc/+bug/1551960/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs