如何在bash中从另一个脚本在后台运行带有输入参数的shell脚本

时间:2013-10-01 11:13:57

标签: bash shell nohup

我有一个脚本,它读取下面给出的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

然后挂起。

我在这里做错了吗?

提前致谢

0 个答案:

没有答案