Getting stuck on sh-3.2# when issued su command over adb in C++ program
<p>I am trying to perform some operations which require superuser permissions but after issuing su command using adb with c++ program like this
http:/pastebin.com/XaHsbVnw
It gets stuck to sh-3.2# and doesn't proceed to next command that is <a href="http://pastebin.com/4k8AV57L" rel="nofollow">http://pastebin.com/4k8AV57L</a></p>

<p>Here is the complete source code
<a href="http://pastebin.com/K7pdi08J" rel="nofollow">http://pastebin.com/K7pdi08J</a></p>

<p>I am using CodeBlocks with GCC Compiler
Please help me :)
PS: I know cat proc/mtd doesn't require su permissions but I am trying to accomplish something else there</p>
