红联Linux门户
Linux帮助

opensuse 无法使用nohup命令

发布时间:2012-02-03 00:07:34来源:红联作者:dyss
opensuse 怎样使用nohup命令啊

我的sh程序,可以用sh 和./来运行。但是用nohup来运行,就不可以。不知道什么原因。
来这里请求帮助一下。

#使用sh运行可以
dyss@linux-3t4t:~/sh_test> sh test.sh
9 main test.sh
------------------------------
dyss@linux-3t4t:~/sh_test> cat test.sh
#!/bin/bash
#caller 0
function1()
{
caller 0 #

}

function1

caller 0
-----------------------------------------使用nohup报错。
dyss@linux-3t4t:~/sh_test> nohup test.sh &
[1] 9787
dyss@linux-3t4t:~/sh_test> nohup: ignoring input and appending output to `nohup.out'
nohup: failed to run command `test.sh': No such file or directory
文章评论

共有 2 条评论

  1. ingrid22 于 2012-02-12 19:39:48发表:

    nohup bash test.sh &

  2. 于 2012-02-04 10:26:31发表:

    nohup ./test.sh
    nohup sh test.sh