<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Guys,<div><br></div><div>I'm currently trying to develop a command which gets some log from a cmd pipe and send the result of the TM command to the HTML output, just like that:</div><div><br></div><div><div><i> cmd_pipe = open("|my_long_script.sh 2>&1")</i></div><div><i> cmd_pipe.each_line do |line|</i></div><div><i> print line</i></div><div><i> STDOUT.flush</i></div><div><i> end</i></div><div><i> cmd_pipe.close</i></div><br></div><div>This allows the web preview to be updated (better than the <i>print `my_long_script.sh 2>&1'</i> for that reason) while the command is processed. But my problem now is that the web preview does not got to the end of the file automatically... This is a bit painful while staring at the result of the command.</div><div><br></div><div>Do someone have an idea to force the web preview to scroll down each time the STDOUT is flushed? Or something like that.</div><div><br></div><div>Thanks in advance.</div><div><br><div><div apple-content-edited="true"> <span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Georgia; font-size: 13px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><div><div><div><div>Best regards,</div><div>Mathieu</div><div><br></div><div>___________________________________________</div><div><br></div><div>Mathieu Godart</div><div><br></div><div>Skype: mathieu_godart</div><div>MSN: <a href="mailto:mathieu_godart@hotmail.com">mathieu_godart@hotmail.com</a></div><div><br></div><div><div>ASIC Integration Manager</div><div>Coolsand Technologies</div></div><div>___________________________________________</div><div><br></div></div></div></div></div></div></div></div></span></div></span></div></span><br class="Apple-interchange-newline"> </div><br></div></div></body></html>