[Gambas-user] stderr output via exec
Ron
ron at ...1740...
Mon Oct 27 17:21:30 CET 2008
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
More information about the User
mailing list