Chinaunix首页 | 论坛 | 博客
  • 博客访问: 470157
  • 博文数量: 142
  • 博客积分: 4126
  • 博客等级: 上校
  • 技术积分: 1545
  • 用 户 组: 普通用户
  • 注册时间: 2008-02-22 10:03
文章分类

全部博文(142)

文章存档

2011年(8)

2010年(7)

2009年(64)

2008年(63)

我的朋友

分类: LINUX

2008-12-04 10:14:31

 
(  2>&1 | tee compile.log && exit $PIPESTATUS )
2>&1 redirects error messages to the same location as standard output. The tee command allows viewing of the output while logging the results to a file. The parentheses around the command run the entire command in a subshell and finally the exit $PIPESTATUS command ensures the result of the  is returned as the result and not the result of the tee command
阅读(479) | 评论(0) | 转发(0) |
0

上一篇:第一章 字符串--介绍

下一篇:VI技巧

给主人留下些什么吧!~~