PC Review


Reply
Thread Tools Rate Thread

echo to screen AND file?

 
 
Thomas Karer
Guest
Posts: n/a
 
      6th Feb 2005
i want do have the output log of my copy jobs to screen AND file, but how?

echo test >log.txt writes this fine to the file but how to output on screen
AND write to file?

thank you
tom


 
Reply With Quote
 
 
 
 
Torgeir Bakken \(MVP\)
Guest
Posts: n/a
 
      6th Feb 2005
Thomas Karer wrote:

> i want do have the output log of my copy jobs to screen AND
> file, but how?
>
> echo test >log.txt writes this fine to the file but how to
> output on screen AND write to file?

Hi

Using a 3rd party "tee" program is an option, a couple of alternatives:

MTEE Commandline Standard Stream Splitter
http://www.commandline.co.uk/mtee/index.html

Tee is also in the "GNU utilities for Win32" at
http://unxutils.sourceforge.net


--
torgeir, Microsoft MVP Scripting and WMI, Porsgrunn Norway
Administration scripting examples and an ONLINE version of
the 1328 page Scripting Guide:
http://www.microsoft.com/technet/scr...r/default.mspx
 
Reply With Quote
 
Paul R. Sadowski [MVP]
Guest
Posts: n/a
 
      6th Feb 2005
Hello, Thomas:
On Sun, 6 Feb 2005 15:38:51 +0100: you wrote...

TK> i want do have the output log of my copy jobs to screen AND file, but
TK> how?

You use a little utilit y called TEE available here
http://unxutils.sourceforge.net/

echo test| tee -a log.txt (the -a switch means to append to the output file)

Or without tee but using your example:
echo test
echo test>log.txt

--
Paul R. Sadowski
Microsoft MVP (MSN Client)
http://www.paulsadowski.com/


 
Reply With Quote
 
 
 
Reply

Thread Tools
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 Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Preventing Screen Repaint - what confilicts with Echo? CSI Microsoft Access VBA Modules 1 7th Nov 2009 11:53 AM
Screen paints, and repaints, echo(off) no worky markmarko Microsoft Access Forms 1 14th Mar 2008 05:00 PM
NF325-A7 Sound problem: sounds like an echo ,,echo...echo makes me crazy...crazy...crazy...help...help...help David Sontag DIY PC 17 30th Nov 2007 06:45 AM
applicaton.echo / docmd.echo screen still pulsing - Why? Rick A Microsoft Access Form Coding 1 30th Mar 2006 04:01 AM
no text echo in command.com screen Art Armfield Microsoft Windows 2000 CMD Promt 11 7th Nov 2003 06:10 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 05:25 PM.