Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个脚本,它读取 2 个输入参数,如下所示:
#!/bin/bash echo -n "Input 1 : " read a echo -n "Input 2 : " read b nohup sh /path/script2.sh $a $b > custom-out.log &
脚本正在执行。但不退出
它打印
nohup: redirecting stderr to stdout
只是挂起。
我在这里做错了吗?
提前致谢