nohup 输出重定向
来源:互联网 发布:mysql union 用法 编辑:程序博客网 时间:2024/06/05 09:49
在shell中,文件描述符通常是:STDIN标准输入,STDOUT标准输出,STDERR标准错误输出,即:0,1,2,
例子:nohup abc.sh > nohup.log 2>&1 &
其中2>&1 指将STDERR重定向到前面标准输出定向到的同名文件中,即&1就是nohup.log
那么结果就是当执行的命令发生标准错误,那么这个错误也会输出到你指定的输出文件中
nohup把abc.sh的输出重定向到文件nohup.log 同时出现错误也输出到nohup.log ,然后后台执行。
There are two formats for redirecting standard output and standard error:
&>word
and
&word
Of the two forms, the first is preferred. This is semantically equivalent to
word 2>&1
阅读全文
0 0
- nohup 输出重定向
- nohup 输出重定向
- nohup 输出文件重定向
- Linux nohup 重定向和不输出
- nohup及重定向
- nohup重定向问题
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- inux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- linux重定向及nohup不输出的方法
- C语言---静态内存结构体实现通讯录
- 汉诺塔自动解题动画中的iOS开发技巧
- 第三本书 高级网络配置
- 用poi做excel自定义格式的导出
- 向上转型与向下转型
- nohup 输出重定向
- JavaScript 面向对象之二 —— 函数上下文(call() 和 apply())
- 【数据压缩】实验四 DPCM
- HTML5 —— audio API 音乐可视化(一)
- IOS开源项目--拖拽游戏
- 【模拟题】页码统计
- acm parctic(1)
- Java基础-网络编程之UDP编程
- Dapper执行Sql语句HitCache导致很慢