You could use read directly on the popen call to negate having to write to a file
output = os.popen(“sdptool -i hci0 search OPUSH“).read() Bodsda Sent from my BlackBerry® wireless device -----Original Message----- From: Ganesh Kumar <bugcy...@gmail.com> Sender: tutor-bounces+bodsda=googlemail....@python.org Date: Mon, 9 Jan 2012 14:47:46 To: <tutor@python.org> Subject: [Tutor] re module help _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor _______________________________________________ Tutor maillist - Tutor@python.org To unsubscribe or change subscription options: http://mail.python.org/mailman/listinfo/tutor