解决:
su - 用户 -c "命令" (也可以,"命令;命令")
shell脚本su - root或者su - 用户,之后的就不运行了
猜你喜欢
转载自blog.csdn.net/zzhlinux911218/article/details/85331531
今日推荐
周排行