Run 2 commands in the same line in terminal emulator I want to execute two commands in the same line on Android terminal emulator.


  Example: the two commands svc wifi disable and `exit


I want to create a widget to disable the WLAN and out of the terminal emulator app at the same time, and in the terminal emulator app widget, I can only put one command.
If you want to execute each command only if the previous one succeeded, then combine them using the &amp;&amp; operator:

Your code should be as follows: 

svc wifi disable &amp;&amp; exit


It will work only if your  first command successfully  execute.