I'm trying out Fabric 1.0.0. I haven't used older versions.

>From the documentation, I gather that if I want to capture stdout from a
remote command without stderr mixed in, I should use pty=False,
combine_stderr=False.

But if I try this, the stderr output is mixed in with stdout anyway: the
following command prints
stdout:'cat: /shouldnotappear: No such file or directory\nshouldappear'
stderr:''

  from fabric.api import run
  def test_stderr():
      r = run(
          "cat /shouldnotappear; echo shouldappear",
          pty=False, combine_stderr=False)
      print "stdout:%r" % r.stdout
      print "stderr:%r" % r.stderr

Do I need to do something more to prevent Fabric combining the streams?

-M-


_______________________________________________
Fab-user mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/fab-user

Reply via email to