Understanding the sending of commands in adb shell I am trying to talk to the modem embedded within a module through adb shell but since I'm accessing the HW remotely, i'm not sure of the original setup and may need some help clarifying:
adb shell runs in linux and following is how I was able to run the command:
cat /dev/smd0 &amp;
echo -e &quot;AT\r&quot; &gt; /dev/smd0


what's the main point behind the first line with &amp;? Doesn't that run things in the background? How does removing it not output the result to the terminal?
the interpretation of the second line: writes/sends the string to the application processor from the linux host over smd0 AT port. Is that legit?
the 2nd line sends a request to serial. the 1st line is waiting for result. in order to make this work one must listening before sending request, that way the answer can not missed. one can accomplish that by running the listening process in background while sending request in same time. it is usual like for handling of named pipes