The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #2 (permalink)  
Old 07-04-2006
sssow sssow is offline
Registered User
  
 

Join Date: Aug 2001
Posts: 179
cmd >log.txt 2>&1
Quote:
Originally Posted by 0ktalmagik
Hi

I want both standard output and standard error of my command cmd to go to the same file log.txt. please let me know the best commandline to do this.

Thanks