Simple tcl script as below. Works fine running from the command line but won’t run from an alert. I’ve set it up to ‘exec emailer.htc’ but when I activate the alert I get the error “Unable to CreateProcess: emailer.htc
I’ve gone through the various historical entries on alerts and this looks correct but obviously isn’t!
Help please.
Cloverleaf 5.4.1 on W2003
Thanks
Garry
#—
# Name : emailer
#
#—
#
###############################################
# main
#
proc main { argc argv } {
package require tclMail 1.0
# Setup array
#
set mailArray(TO)
set mailArray(SERVER) 10.1.2.3
set mailArray(SUBJ) “Interface Down”
set mailArray(MSG) “There is a problem with the interface on the Cloverleaf server”
set mailArray(USER) Garry.Fisher
set mailArray(DOMAIN) dummy.uk
echo “Calling tclMail”
# Call tclMail
#
if {[catch {tclMail::SendMail mailArray} err]} {
echo err: $err)
}
}
###############################################
main $argc $argv