[prev in list] [next in list] [prev in thread] [next in thread]
List: tkined
Subject: [tkined] Returning after the callback execution...
From: Ajit Bhat <ajit () kenati ! com>
Date: 2002-08-13 11:17:19
[Download RAW message or body]
Hi,
Please check the following procedure.
#----------------------------------------------------------------
#performs snmp set operation.
proc setValue {session oid value} {
set success 0
$session set [list [list $oid $value]] {
if {"%E" == "noError"} {
set success 1
} else {
set success 0
}
}
snmp wait
return $success
}
#----------------------------------------------------------------
I want this proc to return '1' if the snmp-set is successful. But it
ALWAYS returns 0!
I think the "snmp wait" doesn't affect the return to actually wait.
How can I work around this problem? Or any other thoughts on this?
thanks in advance.
Ajit.
--
Kenati Technologies
B9, Chanakya. Model Colony.
Pune - 411007. INDIA
Ph: 91-20-5662511
Fax: 91-20-5662510
www.kenati.com
--
!! This message is brought to you via the `tkined' mailing list.
!! Please do not reply to this message to unsubscribe. To unsubscribe or adjust
!! your settings, send a mail message to <tkined-request@ibr.cs.tu-bs.de>
!! or look at https://www.ibr.cs.tu-bs.de/mailman/listinfo/tkined.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic