Example: Background Tasks
ns_schedule_proc can register a background script:
ns_schedule_proc 3600 hourlyCheck
proc hourlyCheck {} {
set errors [… collect errors from log file …]
if {$errors != “”} {
ns_sendmail
[email protected]
\
[email protected]
\
“Errors Encountered” $errors
}
}
Previous slide
Next slide
Back to first slide
View graphic version