I think I would use a 'job' command and run the script via it.
see 'man n job' (under linux) for all the details.
snippet ...
set curr [job current]
if {$Glo(debug) > 4} {
set jobs [job info]
puts " Job List=$jobs current=[job current]"
foreach job $jobs {
puts " Job $job = [$job configure]"
}
}
# Either start a job or reset the time on the existing job
if {$curr == ""} {
job create \
-command CheckDate \
-interval [expr [GetTtm] * 1000]
} else {
$curr configure \
-interval [expr [GetTtm] * 1000]
}
add -iterations 1
to execute the script just once.
Brian
-- D. Brian Kimmel Kimbro, Inc. Voice: (206) 937-8381 Seattle, WA USA http://www.kimbro.com briank@kimbro.com Commercial Internet Services briank@bb.net http://www.bb.net
-- D. Brian Kimmel Kimbro, Inc. Voice: (206) 937-8381 Seattle, WA USA http://www.kimbro.com briank@kimbro.com Commercial Internet Services briank@bb.net http://www.bb.net
-- D. Brian Kimmel Kimbro, Inc. Voice: (206) 937-8381 Seattle, WA USA http://www.kimbro.com briank@kimbro.com Commercial Internet Services briank@bb.net http://www.bb.net
-- !! 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.