Basically, I didn't know tcl/tk until a week or so ago although I'm experienced in C/C++/BASH. So, I looked for code that tended to do what I wanted to do. In this case, the code comes from the exelog.tcl program that appears in "Practical Programming in TCL and Tk". Brent's explanation is "If you do not use cat like this, then the error output from the pipeline shows up as an error message"
On 06/16/2011 11:16 AM, Michael ODonnell wrote: > >> if [catch {open "|$command |& cat"} input] { > Curiosity: why do you pipe it through cat? > -- Jerry Feldman <g...@gapps.blu.org> Boston Linux and Unix PGP key id: 537C5846 PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB CA3B 4607 4319 537C 5846
signature.asc
Description: OpenPGP digital signature
_______________________________________________ gnhlug-discuss mailing list gnhlug-discuss@mail.gnhlug.org http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/