blob: 4b0c7ed4dcdba3122c1e1d7152a5dbd9908d821a [file] [log] [blame]
#!/usr/bin/python
import sys
import dbus
bus = dbus.SessionBus()
client = dbus.Interface(bus.get_object("org.openobex.client", "/"),
"org.openobex.Client")
if (len(sys.argv) < 4):
print "Usage: %s <device> <clientfile> <file>" % (sys.argv[0])
sys.exit(1)
client.ExchangeBusinessCards({ "Destination": sys.argv[1] },
sys.argv[2], sys.argv[3])