Scripting Bluetooth transfers to my phone
Want to send the latest podcast, or movie, or whatever, to your phone - automatically - and find it there, waiting, in the morning? And whatever software you are using doesn’t quite do it? Here’s the trick (for Linux):
`let dp1=$(date +%d)+1
curl http://podcasts.nytimes.com/podcasts/$(date +%Y/%m/%d)/${dp1}frontpage-p.mp3 \
-o nyt-frontpage.mp3 && obexftp -b 00:11:22:33:44:55 \
-p nyt-frontpage.mp3 && rm -f nyt-frontpage.mp3`
where 00:11:22:33:44:55 is the BT address (which you can find, for instance, if you already connected using (KDE) GUI tools at /var/lib/bluetooth/names).
Works like a charm.
1 comment
Lars ·
Comments are closed.