Hi,

small question., I remember something similar in a thread some time ago, 
but couldn't find it.

I can't catch the stderr output from the hcitool command into a string.

This doesn't work:
EXEC ["hcitool", "rssi", sAddress, "2>&1"] TO sStrength

When I create this shell script called btgetrssi.sh :
--
#!/bin/sh
hcitool rssi $1 2>&1
--
And execute it like so:
EXEC ["bin/btgetrssi.sh", sAddress] TO sStrength
All is ok, but I rather don't want to use external scripts and I don't 
want to use a background exec, because I have to run it a few times with 
different addresses not async...

Thanks for any pointers!

Regards,
Ron_2nd


-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user

Reply via email to