maemo.org - Talk

maemo.org - Talk (https://talk.maemo.org/index.php)
-   Nokia N810 (https://talk.maemo.org/forumdisplay.php?f=28)
-   -   Bluetooth mac address via console (https://talk.maemo.org/showthread.php?t=40910)

TheTall1 2010-01-16 18:55

Bluetooth mac address via console solved
 
Hi there,

right now I'm trying to get the own bluetooth mac on the n810 via python and console. One chance would be the content of /var/lib/bluetooth

Solution:
Code:

>>> from subprocess import Popen, PIPE
>>> print Popen(["ls", "/var/lib/bluetooth"], stdout=PIPE).communicate()[0]

Reading the manual and register that 'cmd' != 'args' solved the problem ARGH!


All times are GMT. The time now is 02:29.

vBulletin® Version 3.8.8