-c 的意思是 command,所以 bash -c 后面应该跟一个 command。 用法:bash -c “cmd string” 通常使用shell去运行脚本,两种方法 ①bash xxx.sh ②bash -c “cmd string” |
GMT+8, 2024-11-21 16:32 , Processed in 0.051495 second(s), 19 queries , Gzip On.
Powered by Discuz! X3.5
© 2001-2024 Discuz! Team.