4 Replies Latest reply on Nov 27, 2015 9:43 AM by Yanick Girouard

    [NSH Script Job] maximum length log

    SFK94 NameToUpdate

      Hi,

       

      I encounter an issue when i execute an NSH Script Job on a target.

       

      My job generates above 3000 lines (mostly, html tags) and though its execution is a success, the result log is truncated randomly, but, always near the end of the file.

       

      Script example :

       

      i=1
      
      exec 4>&1 > test.html
      
      while [[ i -lt 5000 ]]; do
      cat << EOL
      <p>hello
       world</p><p>hello world</p><a 
      href="www.google.fr">Google link</a><div>div here div 
      there</div><img src="http://stuff.stuff.fr/xxx/yyy/zzz.png" style="padding:16px;display: inline-block;"></img><p>hello world</p><p>hello world</p>
      EOL
      ((i++))
      done
      
      echo fini
      exec 1>&4 4>&-
      echo ok
      
      IFS=''
      while read line
      do
      echo $line
      done < test.html
      

       

      And the result log screenshot :

      If I reduce the iterator (5000 to 500), i don't encounter the truncation anymore :

       

       

      If you got ideas about my problem... Thank's a lot :-)

       

      Regards.