V
V
valitskiydmitriy2014-11-24 08:54:38
linux
valitskiydmitriy, 2014-11-24 08:54:38

Scanning a directory and sending Ubuntu files?

We need a script on ubuntu that scans the folder for the fact of the appearance of jpg files, sends it via Bluetooth and deletes it after the transfer. As far as I know, for Bluetooth transmission it is used: bluetooth-sendto --device="Device address" but how to do the rest, I find it difficult.
Tell me where to dig?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
K
Konkase, 2014-11-24
@Konkase

find * -name "*.jpg" | while read igame_file; do
    bluetooth-sendto --device="Адрес устройства" "$image_file"
    rm "$image_file"
done

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question