[英]How do I control the user defined commands when executing a shell script in bash?
[英]My script file stopped executing when there change in user in script what should i do
我的代碼文件如下所示
Cd testR
Mkdir bin
chmod -R 755 bin
Sudo su - inst1
cp inst1/installable/files/testR.p
...
...
所以在 sudo su 執行暫停后請讓我知道我該怎么做
如果您的命令以 root 身份執行沒有問題,您可以像這樣執行腳本:sudo./yourscript
因此,您不必在 shell 腳本中進行切換。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.