title: Redirecting the output of my bash to a log file
body: <p>I'm now executing a series of bash scripts and I'd like to capture the value of the command I run in an output file. </p>
  
  <p>I thought this was possible by combining my command with <code>| tee -a outputfile.txt</code> but this is captured only for script 1.</p>
  
  <p>Script 2..4 etc are not appending the output to the file. </p>
  
  <p>Looking around, output can be also redirected in this way - <code>1&gt;&amp;1</code> - but I am a bit confused as sometimes I see number 1 replaced by 2. I guess this has to do with the type of messaging. However, as I don't know how this output redirection is call I'm stuck in finding info.</p>
  
  <p>Any help?
  Thanks
  Andrea</p>