当前位置: > shell编程 >

linux shell script 通过管道执行 sudo 权限

时间:2014-12-01 02:05来源:linux.it.net.cn 作者:IT

linux shell script 通过管道执行 sudo 权限:

echo "password" | sudo command, 事例:

  1 # !/bin/bash
  2 echo "password" | sudo chown john:john aa

(责任编辑:IT)
------分隔线----------------------------
栏目列表
推荐内容