![]() |
2010-02-09
, 16:45
|
Posts: 9 |
Thanked: 0 times |
Joined on Feb 2010
|
#42
|
![]() |
2010-02-09
, 17:02
|
Posts: 526 |
Thanked: 99 times |
Joined on Sep 2009
|
#43
|
![]() |
2010-02-09
, 18:15
|
Posts: 9 |
Thanked: 0 times |
Joined on Feb 2010
|
#44
|
after I've moved it to ~/
I then ran you chmod 755 ~/N900finder.sh
Then when I run
~/N900finder.sh
I get on the next line
/bin/sh: /home/user/N900finder.sh: not found
am I doing something wrong?
![]() |
2010-02-09
, 19:41
|
Posts: 9 |
Thanked: 0 times |
Joined on Feb 2010
|
#46
|
![]() |
2010-02-09
, 22:52
|
|
Posts: 47 |
Thanked: 24 times |
Joined on Nov 2009
@ Bolton, United Kingdom
|
#47
|
#!/bin/bash a=`hcitool scan --class | awk '/BD Address/ {print substr($3,0,8)}' | grep '00:BD:3A\|00:BD:3B'`; echo $a; if [ "$a" ] then dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:'Pizza! N900 here!' uint32:0 string:'OK' fi;
![]() |
2010-02-10
, 09:32
|
Posts: 526 |
Thanked: 99 times |
Joined on Sep 2009
|
#48
|
#!/bin/bash
a=`hcitool scan --class | awk '/BD Address/ {print substr($3,0,8)}' | grep '00:BD:3A\|00:BD:3B\|00:21:9E'`;
echo $a;
if [ "$a" ]
then
dbus-send --type=method_call --dest=org.freedesktop.Notifications /org/freedesktop/Notifications org.freedesktop.Notifications.SystemNoteDialog string:'Pizza! N900 here!' uint32:0 string:'OK'
fi;
![]() |
2010-02-10
, 12:42
|
Posts: 9 |
Thanked: 0 times |
Joined on Feb 2010
|
#49
|
![]() |
2010-02-10
, 13:02
|
|
Posts: 47 |
Thanked: 24 times |
Joined on Nov 2009
@ Bolton, United Kingdom
|
#50
|
I copied the code above and added one more section so it look slike this:
and I get the following errors:
:not found N900finder.sh:line 2:
:not found N900finder.sh:line 3:
:not found N900finder.sh:line 7: syntax error: "fi" unexpected (expecting "then")
Please not this when I'm not expecting to find a device. perhaps thats why there is an error, could someone try my code please.
P.S it will take time, cause I'm new to Maemo dev. but I will try and app name searching as well.
Christopher Stobbs
My Blog