Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I'd like to send files to my phone via bluetooth using a bash script or something similar. The ussp-push utility works, but I find it is much slower than the "Send To" option in gnome. Is there a way to use gnome's bluetooth functionality from a shell scirpt?

share|improve this question
add comment

1 Answer 1

up vote 7 down vote accepted

bluetooth-sendto --device=12:34:56:78:9A:BC filename works for me. "12:34:56:78:9A:BC" is the Bluetooth device address (bdaddr) of the device. You can get the bdaddr with hcitool scan.

share|improve this answer
2  
Thanks, this is exactly what I was looking for. –  Ralf May 8 '11 at 9:08
    
Note that the bluetooth-sendto command opens a dialog which shows the progress of the file transfer, so it cannot be used from a headless display. However, it is perfect for my use case. –  Ralf May 9 '11 at 14:05
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.