>>>>> Jurkin Drazen writes:
Jurkin> Shortly: I want in TCL script to wait (exact amount of
Jurkin> seconds) and listen for trap messages in the same time.
Jurkin> How can I do it?
This is a Tcl question and not really scotty specific. What you
do it the following:
proc done_waiting {} {
puts stderr done
}
after 10000 done_waiting
You define another proc which is called when you receive traps. You
can introduce some global variables if you need to check whether you
are already in waiting mode or not.
/js
-- Juergen Schoenwaelder Technical University Braunschweig <schoenw@ibr.cs.tu-bs.de> Dept. Operating Systems & Computer Networks Phone: +49 531 391 3289 Bueltenweg 74/75, 38106 Braunschweig, Germany Fax: +49 531 391 5936 <URL:http://www.ibr.cs.tu-bs.de/~schoenw/>-- !! This message is brought to you via the `tkined & scotty' mailing list. !! Please do not reply to this message to unsubscribe. To subscribe or !! unsubscribe, send a mail message to <tkined-request@ibr.cs.tu-bs.de>. !! See http://wwwsnmp.cs.utwente.nl/~schoenw/scotty/ for more information.
This archive was generated by hypermail 2b29 : Thu Jan 03 2002 - 14:56:27 MET