1.sudo -S 可以进行用管道传递参数
-S The -S (stdin) option causes sudo to read the password from the standard input instead of the terminal device. The password
must be followed by a newline character.
2.追加文本到textview中
http://www.xuebuyuan.com/2104131.html 用textstorage,很方便