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 -->
  #7 (permalink)  
Old 08-29-2008
era era is offline Forum Advisor  
Herder of Useless Cats (On Sabbatical)
  
 

Join Date: Mar 2008
Location: /there/is/only/bin/sh
Posts: 3,652
The set -x is what causes the commands to be echoed to the shell's stderr. You can't redirect those from within the shell (other than with exec, but let's not go there. Take out the set -x because it obviously does not do what you want, or more like, all it does is the stuff you say you don't want).