<div><span style="font-size: 15px;">Kas,</span></div><div><span style="font-size: 15px;"><br></span></div><div><span style="font-size: 15px;">Have you ever gotten this working?  I've tried it and it seems there's a problem with the way chuck buffers its output.  The status lines don't come out until the process ends.  The only way I've been able to read the status line without stopping the VM is to run chuck inside of GNU screen and log its output (screen -L chuck --loop), and tail the log file, but I don't know how to configure screen to make it constantly log its output; it seems to only log periodically, so there's a delay until you see the status output.  I've tried a few different things with appending to files or writing to FIFOs but the way the chuck command writes its output always seems to pose a stumbling block.</span></div><div><span style="font-size: 15px;"><br></span></div><div><span style="font-size: 15px;">-jordan</span></div><div><span style="font-size: 15px;"><br></span></div><div><span style="font-size: 15px;"><br></span></div><div><span style="font-size: 15px;"><div>chuck version: 1.2.1.4-beta-1 (dracula)</div><div>   exe target: mac os x : universal binary</div></span></div><div><span style="font-size: 15px; "><br></span></div><div><span style="font-size: 15px;"><br></span></div>
                 
                <p style="color: #A0A0A8;">On Sunday, July 8, 2012 at 2:25 PM, Kassen wrote:</p>
                <blockquote type="cite" style="border-left-style:solid;border-width:1px;margin-left:0px;padding-left:10px;">
                    <span><div><div><div>Hey Atte,</div><div><br></div><blockquote type="cite"><div>If this is not directly possible, does anyone have an idea for a hack?</div></blockquote><div><br></div><div>Shred objects have a .running() and a .done() member function. Those</div><div>might cover your usage case?</div><div><br></div><div>Rather cludgy workaround; you could have the VM pipe its output to a</div><div>file, then create a chuck function that would clear the file, call for</div><div>the VM status using Std.system( "chuck --status)", then read the file.</div><div>This would be rather slow.</div><div><br></div><div>It's odd that this seems so hard. Maybe we need to re-think the status</div><div>stuff. I'd like to also repeat that I feel it'd be useful of the chuck</div><div>command, when connecting to a already running VM, would return the</div><div>result of it's operation, instead of printing it to the VM's window.</div><div>It seems that while convenient for human readers the place where the</div><div>status gets returned is rather inconvenient for reading by processes.</div><div><br></div><div>Yours,</div><div>Kas.</div><div>_______________________________________________</div><div>chuck-users mailing list</div><div><a href="mailto:chuck-users@lists.cs.princeton.edu">chuck-users@lists.cs.princeton.edu</a></div><div><a href="https://lists.cs.princeton.edu/mailman/listinfo/chuck-users">https://lists.cs.princeton.edu/mailman/listinfo/chuck-users</a></div></div></div></span>
                 
                 
                 
                 
                </blockquote>
                 
                <div>
                    <br>
                </div>