Clovertech
› Clovertech Forums › Read Only Archives › Cloverleaf › Cloverleaf › Emailing from within a tcl proc
Hello,
I am trying to email from within a tcl proc.
Try using the catch command. I don’t have an example with me, but I am sure it is in the tcl help.
Here is one way to do it:
catch {exec echo “Skipped Provation message for $PIDname , $PIDnumber” | mail -s “Skipped Provation Message” $pagerUSERS &} catch_return
-- Max Drown (Infor)
I ususally do something like this:
set subject “message from Cloverleaf Server”
set address “someone@ahss.org”
set cmd “exec mail -s “$subject” $address < /tmp/tmp_email & "
if {[catch $cmd result]} {