tcl/TK question

Jerry Feldman gaf at gapps.blu.org
Thu Jun 16 12:04:58 EDT 2011


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 <gaf at gapps.blu.org>
Boston Linux and Unix
PGP key id: 537C5846
PGP Key fingerprint: 3D1B 8377 A3C0 A5F2 ECBB  CA3B 4607 4319 537C 5846


-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 253 bytes
Desc: OpenPGP digital signature
Url : http://mail.gnhlug.org/mailman/private/gnhlug-discuss/attachments/20110616/67d7faaa/attachment.bin 


More information about the gnhlug-discuss mailing list