title: Logs are not inserting in 'nohup.out' file
body: <p>I am executing script1.sh through crontab.</p>
  <p>script1.sh</p>
  <pre><code>echo &quot;Crontab is executing this script.&quot;
  echo &quot;Some code is running here.&quot;
  cd cron
  ./script2.sh
  </code></pre>
  <p>'script1.sh' is invoking 'script2.sh'.</p>
  <p>'script2.sh'</p>
  <pre><code>echo &quot;Exceuting script2.&quot;
  echo &quot;log of script3.sh is inserting in nohup.out file.&quot;
  nohup sh script3.sh &amp;
  echo &quot;Above syntax is not logging in nohup.out file. but this syntax is 'sh script3.sh &gt; nohup.out &amp;' is logging in nohup.out file. Why is it so?&quot;
  </code></pre>
  <p>'script2.sh' is invoking 'script3.sh',but not able to log in nohup.out file. For logging following syntax is used.</p>
  <p>nohup sh script3.sh &amp;</p>
  <p>'script3.sh' contains below mention line of codes.</p>
  <pre><code>echo &quot;Executing script3. This is just test example to simulate the things.&quot;
  </code></pre>
  <p>Why logs are not inserting in nohup.out file?</p>