home bbs files messages ]

Just a sample of the Echomail archive

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

 Message 2764 
 Wilfred van Velzen to Ed Vance 
 Re: Batch File Help 
 08 Jul 20 11:12:57 
 
TID: FMail-lnx64 2.1.0.18-B20170815
RFC-X-No-Archive: Yes
TZUTC: 0200
CHRS: UTF-8 2
PID: GED+LNX 1.1.5-b20161221
MSGID: 2:280/464 5f058e1b
REPLY: 2122.windowsb@1:2320/105 236a7600
Hi Ed,

On 2020-07-07 23:03:00, you wrote to All:

 EV> I know how to Redirect the output of a .BAT File to Save it to the HDD
 EV> using  >>  .

 EV> When I do that I can't see the output of the .BAT File on the screen.

 EV> I'm trying to figure out how to write some line(s?) in my .BAT File
 EV> that will make the computer SHOW the Output and SAVE the Output to a
 EV> File on the HDD at the SAME TIME.

You need the "tee" command. On linux it's a standard command, probably not on
windows, but I have it in my "library", so it does exist ;).

It writes the data it receives on standard-in to standard-out, _and_ writes it
to a file. So does exactly what you want.

For example:

  echo "Hi!" | tee.exe -a example.log

Will write "Hi!" to the screen and append it to example.log...


Bye, Wilfred.

--- FMail-lnx64 2.1.0.18-B20170815
 * Origin: FMail development HQ (2:280/464)
SEEN-BY: 1/123 90/1 120/340 601 123/131 226/30 227/114 702 229/101
SEEN-BY: 229/424 426 452 664 1014 240/5832 249/206 317 400 292/854
SEEN-BY: 317/3 322/757 342/200 633/280
PATH: 280/464 229/101 426


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

(c) 1994,  bbs@darkrealms.ca