[Gambas-user] stderr output via exec
Mike Keehan
Mike at ...680...
Mon Oct 27 18:43:56 CET 2008
Try using SHELL instead of EXEC.
Mike.
Ron wrote:
> 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 at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
>
More information about the User
mailing list