Your Ad Here
首页 | 编程语言 | 网站建设 | 游戏天堂 | 冲浪宝典 | 网络安全 | 操作系统 | 软件时空 | 硬件指南 | 病毒相关 | IT 认证
软讯网络 > 操作系统 > Linux > 如何使程序的执行结果同时定向到屏幕和文件
【标  题】:如何使程序的执行结果同时定向到屏幕和文件
【关键字】:
【来  源】:http://www.cublog.cn/u/6593/showart.php?id=176190

如何使程序的执行结果同时定向到屏幕和文件

Your Ad Here
program_name |tee logfile
这样程序执行期间的显示都记录到logfile同时显示到标准输出(屏幕)。
 
[zhanghua@localhost ZA]$ man tee
TEE(1)                                FSF                               TEE(1)
NAME
       tee - read from standard input and write to standard output and files
SYNOPSIS
       tee [OPTION]... [FILE]...
DESCRIPTION
       Copy standard input to each FILE, and also to standard output.
       -a, --append
              append to the given FILEs, do not overwrite
       -i, --ignore-interrupts
              ignore interrupt signals
       --help display this help and exit
       --version
              output version information and exit
linux下Telnet服务的配置:【上一篇】
The Google Story:【下一篇】
【相关文章】
没有相关文章
【随机文章】
  • Beyond LFS 6.2.0 RC1[转载]
  • 用SQL Server为Web浏览器提供图像(二)(转)
  • 预言
  • ,"[广告]flash登录的留言
  • 判断文本框输入比例之和为100%
  • 模块化组织流程研究
  • c#修饰符
  • 什么样的男人才能给女人安全感?
  • 更新XQuery
  • 事务(Transaction)基本概念
  • 【相关评论】
    没有相关评论
    【发表评论】
    姓名:
    邮件:
    随机码*
    评论*
          
    |  首 页  |  版权声明  |  联系我们   |  网站地图  |
    CopyRight © 2004-2007 bbb软讯网络 All Rigths Reserved.