

This is how sending file works. For automating this process i have written one shell script using expect. which is as below.
Code: Select all
#!usr/bin/expect -f
set address [lindex $argv 0]
set prompt '#'
spawn sudo obexctl
sleep 1
expect -re $prompt
send "connect <MAC Address>"
sleep 5
send "quit"Also posted question on Stackoverflow... https://stackoverflow.com/questions/543 ... s-expected