Why don't y ou try to redirect the output of adb shell to the NUL device
instead ?

On Tue, Mar 24, 2009 at 4:22 AM, <[email protected]> wrote:

>
> As you know, when issue "adb shell sendevent", the printf of sendevent
> will write to "/dev/pts/1", and at that time, ADB server will read from
> "/dev/ptmx".
> Finally, the printf of sendevent will show at Windows CMD.
>
> But, I don't want any printf's info is shown at Windows CMD. How to do at
> sendevent?
>
> Currently, I have added following codes at sendevent:
> -------------------------------------------------------------
> close(0);
> close(1);
> close(2);
> sleep(10);
> -------------------------------------------------------------
>
> But, Windows CMD still wait 10 second, and then over "adb shell sendevent".
>
> Because sendevent will consume more than 10 seconds, I wish sendevent can
> close output device, and then ADB server immediately stop read, and then
> Windows CMD immediately finish "wait status", and Windows CMD can input any
> other commands by person.
>
> How to do that?
>
> Thanks.
>
>
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to