Hi,
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...
Thanks & regards,
Sanjib.
