((( safetee )))

safetee command is extended from tee command.
safetee can redirect stderr.
safetee does not break the drag & dropped file. (tee breaks the drag & dropped file.)
safetee can use on Windows XP - Windows 7.


((( sample )))

Output stdout to stdout and file.txt
  >program parameters | safetee -o file.txt

Output stdout to stdout and appand to file.txt
  >program parameters | safetee -a file.txt

Output stdout and stderr to stdout and appand to file.txt
  >program parameters 2>&1 | safetee -o file.txt

Output stdout and stderr to stdout and stderr and file.txt and stderr to err.txt
  >safetee -oe file.txt -e err.txt -cmd program parameters


((( parameters )))

-o   : output stdout to file
-a   : append stdout to file
-e   : output stderr to file (need -cmd)
-ea  : append stderr to file (need -cmd)
-oe  : output stdout and stderr to file (need -cmd)
-oea : append stdout and stderr to file (need -cmd)
-cmd : command line redirected stdout and stderr
-h   : display help


safetee  ver1.00  Feb.28, 2010
Copyright (c) 2010, T's-Neko at Sage Plaisir 21 (Japan)
All rights reserved. Based on 3-clause BSD license.

Sofrware Design Gallery "Sage Plaisir 21"  http://www.sage-p.com/



----------------------------------------------------------------


((( safetee )))

safetee R}h́Atee R}hĝłB
safetee ́AWG[o͂_CNgł܂B
safetee փt@ChbOhbvĂÃt@C󂵂܂Bitee ͉󂵂܂j
safetee ́AWindows XP  Windows 7 ܂Ŏg܂B


((( Tv )))

Wo͂AWo͂ file.txt t@Cɏo͂܂B
  >program parameters | safetee -o file.txt

Wo͂AWo͂ file.txt t@CɒǋLo͂܂B
  >program parameters | safetee -a file.txt

Wo͂ƕWG[o͂AWo͂ file.txt t@Cɏo͂܂B
  >program parameters 2>&1 | safetee -o file.txt

Wo͂ƕWG[o͂AWo͂ file.txt t@Cɏo͂܂B
WG[o͂AWG[o͂ err.txt t@Cɏo͂܂B
  >safetee -oe file.txt -e err.txt -cmd program parameters


((( p[^[ )))

-o   : Wo͂t@Cɏo͂܂B
-a   : Wo͂t@CɒǋLo͂܂B
-e   : WG[o͂t@Cɏo͂܂B (-cmd p[^[Kvł)
-ea  : WG[o͂t@CɒǋLo͂܂B (-cmd p[^[Kvł)
-oe  : Wo͂ƕWG[o͂t@Cɏo͂܂B (-cmd p[^[Kvł)
-oea : Wo͂ƕWG[o͂t@CɒǋLo͂܂B (-cmd p[^[Kvł)
-cmd : Wo͂ƕWG[o͂_CNgR}hC
-h   : wv\܂B


safetee  ver1.00  Feb.28, 2010
Copyright (c) 2010, T's-Neko at Sage Plaisir 21 (Japan)
All rights reserved. Based on 3-clause BSD license.


CZXF
łg܂Aۏ؂łB
ĔЕz쌠\폜ȂΎRɂł܂B

T|[gF
\tgEFAfUC Sage Plaisir 21  http://www.sage-p.com/

