最近碰到的小麻烦和解决方式~

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,很方便

posted @ 2016-09-20 15:07  I_O_S  阅读(185)  评论(0编辑  收藏  举报