<div class="gmail_extra"><div class="gmail_quote">On 8 November 2012 02:42, Carl Smith <span dir="ltr"><<a href="mailto:carl.input@gmail.com" target="_blank">carl.input@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div id=":13k">I tried `pwd` and so on, and get the same behaviour. Everything<br>
printed by `!abd shell <cmd>` ends up in the terminal, not in the<br>
Notebook, though I still get a newline in the Notebook for each line<br>
that should be there.<br>
<br>
Any thoughts?</div></blockquote></div><br>You don't have anything in config or startup files that could be setting ip.system to ip.system_raw? Can you check that ip.system is ip.system_piped, just before an offending command?<br>

<br>We fail to redirect C-level stdout from within the kernel process (issue #1230), but the subprocess when you run a system command should be run in a new pseudoterminal controlled by IPython, so I'm mystified why the output is going to the wrong place.<br>

<br>Thomas<br></div>