The Following User Says Thank You to adalal For This Useful Post: | ||
|
2010-11-15
, 21:14
|
Posts: 543 |
Thanked: 151 times |
Joined on Feb 2010
@ Germany
|
#2
|
|
2010-11-15
, 21:20
|
Posts: 227 |
Thanked: 51 times |
Joined on Feb 2006
|
#4
|
The Following 2 Users Say Thank You to djs_tx For This Useful Post: | ||
|
2010-11-15
, 21:32
|
Posts: 41 |
Thanked: 7 times |
Joined on Dec 2009
@ Oslo, Norway
|
#5
|
#!/usr/bin/python import os import string import time while 1>0: dev_scan = "hcitool scan" list_dev=os.popen(dev_scan) tot= list_dev.read() tot= tot.split("\n") tot.pop(0) tot.reverse() tot.pop(0) for dev in tot: dev=dev.split("\t") #browse_dev_command="sdptool browse " + dev[1] get_channel = "sdptool browse " +dev[1] + " | tr -s ' ' | grep -e \"Channel\" | sed 's/ Channel: /Channel: /g' | cut -d\ -f2" #print dev[1] + " - " + dev[2] channel_scan=os.popen(get_channel) channel=channel_scan.read() send_file="obextool push file.txt " + dev[1] + " " + channel print "sending file to " + dev[2] send=os.popen(send_file) time.sleep(5)
The Following User Says Thank You to smartypants For This Useful Post: | ||
|
2010-11-15
, 21:51
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#6
|
|
2010-11-16
, 03:28
|
Posts: 41 |
Thanked: 7 times |
Joined on Dec 2009
@ Oslo, Norway
|
#7
|
|
2010-11-16
, 04:12
|
Posts: 671 |
Thanked: 1,630 times |
Joined on Aug 2010
|
#8
|
i wrote such an app in uiq before. this originated from something called bluejacking. in short, bad idea. battery drain, privacy issues, etc.
|
2010-11-16
, 11:53
|
Posts: 958 |
Thanked: 483 times |
Joined on May 2010
|
#9
|
|
2010-11-16
, 11:55
|
|
Posts: 1,411 |
Thanked: 1,330 times |
Joined on Jan 2010
@ Tatooine
|
#10
|
The Following User Says Thank You to jedi For This Useful Post: | ||
just a thought...