重定向的nohup的标准错误到的nohup.out [英] Redirect nohup's stderr to nohup.out

查看:1235
本文介绍了重定向的nohup的标准错误到的nohup.out的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我如何运行与的nohup A命令,这样的两个的输出和错误都保存到的nohup.out ?默认情况下只有标准输出保存和标准错误将被丢弃。

How do I run a command with nohup so that both the stdout and stderr are saved to nohup.out? By default only stdout is saved and stderr is discarded.

推荐答案

试试这个

nohup 2>&1 Ex.exe &

这篇关于重定向的nohup的标准错误到的nohup.out的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆