+
+
+/***
+ * notify send mail to user giving execution results
+ * return code - none
+ * This program assumes new mail command - send remote mail
+ */
+
+notify(user, rmt, cmd, str)
+char *user, *rmt, *cmd, *str;
+{
+ char text[100];
+ char ruser[100];
+
+ sprintf(text, "uuxqt cmd (%s) status (%s)", cmd, str);
+ if (prefix(rmt, Myname))
+ strcpy(ruser, user);
+ else
+ sprintf(ruser, "%s!%s", rmt, user);
+ mailst(ruser, text);
+ return;
+}