> On Wed, 23 Nov 2005 00:03:55 +0530 [EMAIL PROTECTED] wrote:
> SNC> We are writing a Tcl Wrapper over the NET-SNMP library as we 
> SNC> did not want to use the library executables directly because
> SNC> of performance issues.
> SNC>
> SNC> The library uses fprintf(stderr,...) statements to print the 
> SNC> ouput.

> Use shell redirects or pipes to re-route the output.

I think you misunderstand the problem.  Or maybe I do.  If he's built a
Tcl extension which calls Net-SNMP API functions and those functions
fprintf(stderr, ...), there's no where to apply the redirection.  I
suppose he might do:

   tclsh myscript.tcl 2>foo.txt

and then read foo.txt inside myscript.tcl but that seems quite icky.


-------------------------------------------------------
This SF.Net email is sponsored by the JBoss Inc.  Get Certified Today
Register for a JBoss Training Course.  Free Certification Exam
for All Training Attendees Through End of 2005. For more info visit:
http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to