[chuck-users] Getting the status of running shreds *into* chuck
signal.automatique at gmail.com
Sun Jul 8 14:25:44 EDT 2012
> If this is not directly possible, does anyone have an idea for a hack?
Shred objects have a .running() and a .done() member function. Those
might cover your usage case?
Rather cludgy workaround; you could have the VM pipe its output to a
file, then create a chuck function that would clear the file, call for
the VM status using Std.system( "chuck --status)", then read the file.
This would be rather slow.
It's odd that this seems so hard. Maybe we need to re-think the status
stuff. I'd like to also repeat that I feel it'd be useful of the chuck
command, when connecting to a already running VM, would return the
result of it's operation, instead of printing it to the VM's window.
It seems that while convenient for human readers the place where the
status gets returned is rather inconvenient for reading by processes.
More information about the chuck-users