On 05/25/2010 02:19 AM, Rick Flower wrote:
Paolo et-al,
I've got a script that uses a pipe to issue commands and retrieve
the output for parsing.. All is good but I found out today that
one of the commands I'm invoking generates output to stderr in
addition to stdout. The stderr stuff is sent directly to the
terminal session while gst sees the stdout stuff.. Is there a
way to also capture the stderr stuff and either parse it
separately (or discard) or merge the two together for combined
parsing?
Having a full-blown class for spawning children processes is on the todo
list.
In the meanwhile, you can pass 2>&1 or 2>/dev/null at the end of the
popen command, though this will sacrifice portability to Windows of
course (but I guess you don't care).
Paolo
_______________________________________________
help-smalltalk mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-smalltalk