Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: logging shell output  (Read 4160 times)

0 Members and 1 Guest are viewing this topic.

john jewett

  • Guest
logging shell output
« on: July 27, 2004, 02:02:36 PM »
Hi,

I need to take the output of a batch file and put it to a log file.  This needs to at the same time output to the screen.  I have tried using tee but since i am using win98se, the batch wont send the output to the screen untill the command(xcopy) in the batch file is done.  But since the command waits for the user to anser y or n, the user needs to see the output of xcopy one line at a time, not just all at once when the command is finished.  I will attach my batch file below.  But what I want is to send the output of the batch file to both the screen and a log file.

john

xcopy Z:\JJJ\test\*.* C:\Temp\JJJ\sync\test /v /f /d /s /e /k /-y | tee.exe -a sync%mm%-%dd%-%yy%.log

johnjewett

  • Guest
Re: logging shell output
« Reply #1 on: July 29, 2004, 06:23:06 AM »
any ideas???