<div dir="ltr">I&#39;ve got a bash script that has two parts. <div><br></div><div>1. runs a script as a different user (using su &lt;username&gt; -c &lt;script&gt;)</div><div>2. when that part finishes, the script does a copy of the files created to another directory</div>
<div><br></div><div>I want to log the output of the entire script into one file.  I.e.:</div><div><br></div><div>internal script&gt;external script&gt; logfile </div><div><br></div><div>What&#39;s the best way to do this?  I can clarify, I hope, I&#39;ve edited this a dozen times to get what I want in as clear a message as possible.<br clear="all">
<div><br></div>-- <br>Caesar si viveret, ad remum dareris.<br><br>Mark Haney<br>Software Developer/Consultant<br><a href="mailto:mark.haney@gmail.com" target="_blank">mark.haney@gmail.com</a>
</div></div>