home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.msdos.batch.nt      Fun with Windows NT batch files      68,980 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 67,050 of 68,980   
   JJ to All   
   Re: Is there a standalone tool that work   
   10 Sep 17 06:31:18   
   
   From: jj4public@vfemail.net   
      
   On Sat, 9 Sep 2017 22:42:59 -0000 (UTC), Auric__ wrote:   
   > JJ wrote:   
   >   
   >> TCC's TEE command copies standard input to both the standard output and to   
   >> a file.   
   >>   
   >> e.g. for use with FOR command when parsing a command/program output without   
   >> manually ECHOing the lines.   
   >   
   > Tee is a standard util in the *nix world... not so much in Windows. There are   
   > various *nix-alike systems that run under Windows which include a version of   
   > tee, or you can write your own, if you can program. It's pretty straight-   
   > forward:   
   >   
   > 1. Open stdin, stdout, and the file to write to (listed on the command line).   
   > 2. Read from stdin to a variable, write said variable to stdout & the file.   
   > 3. When eof(stdin), close everything and exit.   
      
   Dang, it was right under my nose! Why the heack didn't I thought of that   
   before? I already have a set of GNU utilities from IIRC, gnuwin32 project.   
   And yes, it has the tee program.   
      
   Thanks for that. :)   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca