I have a Perl/Tk script that executes a system command.  What I'd like to
do is capture the output from this system command and redirect it to both
a filehandle and a text widget.

print FH "some string\n";                    # This prints to the logfile
$text->insert('end; "some string\n");    # This prints to the text widget

system("cat foobar.txt");

Now, how to I get the output from the system command into the
filehandle and into the text widget?  I'm obviously overlooking
something.

I would do a "tee" but I don't think I can tee to a widget, or can I?

Any help is greatly appreciate.

Carter.

_______________________________________________
Perl-Win32-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to