Go Back   PCMech Forums > Windows Support > Windows Legacy Support (XP and earlier)

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 07-27-2004, 03:27 PM   #1
Member (1 bit)
 
Join Date: Jul 2004
Posts: 1
logging shell scripts

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

@echo off
xcopy Z:\JJJ\test\*.* C:\Temp\JJJ\sync\test /v /f /d /s /e /k /-y | tee.exe -a sync%mm%-%dd%-%yy%.log
jjjewett is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:32 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2