【linux命令解析】【nohup &】

来源:互联网 发布:微信直播软件 编辑:程序博客网 时间:2024/05/23 17:09

nohup ./bin/smsp >smsp.log 2>&1 &


这个命令的意思是 

1.将  ./bin/smsp 后台执行忽略所有挂断(SIGHUP)信号

2.将  ./bin/smsp 的执行结果输出到 smsp.log 

3. 2>&1 的意思是 :将标准错误信息转变成标准输出,这样就可以将错误信息输出到out.log 日志里面来。

这里面的1/2/3分别表示的意思是:

0 – stdin (standard input)
 1 – stdout (standard output)
 2 – stderr (standard error)

0 0
原创粉丝点击