This is a discussion on Re: Tcl wrapper over net-snmp library within the SNMP Coders forums, part of the Networking and Network Related category; > We are writing a Tcl Wrapper over the NET-SNMP library as we did > not want to use ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
> We are writing a Tcl Wrapper over the NET-SNMP library as we did
> not want to use the library executables directly because of > performance issues. > > The library uses fprintf(stderr,...) statements to print the ouput. > > With the Tcl Wrapper, the net-snmp commands can be executed from > the tcl shell as commands. > > The problem is, the output of the command execution is displayed on > the terminal because of the fprintf's used within the library. > Since I am calling the command from within a tcl script, I am not > able to capture the result (printed on the stderr). > > I execute the net-snmp commands by using > > if {![catch {eval $cmd} status]} { > > #print the required message or the result > > } > > There is nothing stored in the status variable. > > I would appreciate any kind of help here... You're saying you used swig or something to wrap the Net-SNMP API rather than using snmpget, etc.? Why not use Scotty? (Though I have to admit that I've had trouble cross-building Scotty for my embedded platform.) I might also suggest asking on news:comp.lang.tcl. Chris ------------------------------------------------------- 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 Net-snmp-coders@lists.sourceforge.net https://lists.sourceforge.net/lists/...et-snmp-coders |