home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / OS2TEE.ZIP / TEE.DOC < prev    next >
Text File  |  1988-08-13  |  3KB  |  100 lines

  1.  
  2.  
  3.  
  4.                                                 
  5.                  Delta Concepts' "TEE" Utility                  
  6.  
  7.  
  8.             Copyright (c) 1988: by Delta Concepts Inc.
  9.      All rights, not expressly granted herein, are reserved.                   
  10.  
  11.                                              
  12. The user is granted the right to make unlimited copies of this 
  13. program and to distribute these copies as he/she desires, EXCEPT 
  14. that Delta Concepts Inc reserves the SOLE right to distribute the 
  15. program for PROFIT.  All copies must contain this program in its 
  16. ORIGINAL and UNMODIFIED form as released by Delta Concepts.  If 
  17. the user distributes the product, the user may collect a
  18. duplication charge, not to exceed $5 per copy. 
  19.  
  20.  
  21.  
  22.                        Program Description
  23.  
  24.  
  25. TEE is an OS/2 mode utility that copies "stdin" to both "stdout" 
  26. and "stderr" until an End of File condition is detected. It is 
  27. useful in situations where the output of a program (such as MAKE) 
  28. needs to be sent to more than one destination (such as the 
  29. console and a disk file). 
  30.   
  31. The OS/2 MAKE utility is a good example. With long and complex 
  32. make files, invoking MAKE with: 
  33.   
  34.   MAKE file
  35.       
  36. could causes MAKE's output to scroll off the screen, perhaps 
  37. allowing an important warning or error message to be overlooked.  
  38. Simply redirecting makes output with: 
  39.   
  40.   MAKE file 2>&1 >file.err
  41.   
  42. will save all output but gives no the user no indication MAKE's 
  43. progress ("2>&1" ensures all output will be redirected). Piping 
  44. MAKE's output through MORE with: 
  45.   
  46.   MAKE file 2>&1 | MORE
  47.         
  48. displays MAKE's progress but requires the user be present to hit 
  49. a key after each full screen before MAKE finishes. Piping MAKE's 
  50. output through TEE with: 
  51.   
  52.   MAKE file 2>&1 | TEE >file.err
  53.   
  54. yields the benefits of both methods without the drawbacks. MAKE's 
  55. output is displayed without pauses while, at the same time, a 
  56. copy is redirected to a disk file.  The output can then be 
  57. reviewed, screen by screen, with: 
  58.   
  59.   MORE <file.err
  60.  
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.                      TEE.ARC File Description
  71.  
  72.  
  73.            TEE.C             TEE source file
  74.            TEE.DOC           TEE Documentation
  75.            TEE.EXE           TEE executable file
  76.            TEE.MAK           TEE make file
  77.            MAKETEE.CMD       command file to make TEE
  78.            MAKEFILE.CMD      Sample MAKE command file using TEE
  79.  
  80.  
  81.  
  82.                       Delta Concepts Catalog
  83.  
  84.                                                 
  85. For a FREE catalog describing the complete line shareware and 
  86. other products available from Delta Concepts, send your name and 
  87. address along with $5 for shipping and handling to: 
  88.                                                 
  89.                    Free Catalog
  90.                    Delta Concepts Inc
  91.                    249 S. Hwy 101 suite 502          
  92.                    Solana Beach, CA 92075, USA          
  93.                                                 
  94. All comments and suggestions are greatly appreciated and should 
  95. be directed to: 
  96.                                                 
  97.                            Joel French                  
  98.                        User ID: 76576,3153              
  99.  
  100.