[BangPypers] re module help
Mandar Vaze / मंदार वझे
mandarvaze at gmail.com
Mon Jan 9 13:51:03 CET 2012
> cmd = "sdptool -i hci0 search OPUSH > sdptool"
> working file standalone fine. but over stream not getting output.
> check link
In the the code above, as well as from dpaste link, you are already
redirecting to a file.
Try "cmd = "sdptool -i hci0 search OPUSH" instead, so that output is sent
to stdout/stderr and hopefully you'll get it captured via pipe.
You should also check the exit code via wait() or close() . See
Finally, if you are using python 2.7, as noufal suggested, use subprocess
More information about the BangPypers