> > cmd = "sdptool -i hci0 search OPUSH > sdptool" > > working file standalone fine. but over stream not getting output. > > check link > > http://dpaste.com/684335/ > > 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 http://docs.python.org/library/os.html Finally, if you are using python 2.7, as noufal suggested, use subprocess module instead. -Mandar _______________________________________________ BangPypers mailing list BangPypers@python.org http://mail.python.org/mailman/listinfo/bangpypers