Lines Matching defs:mailpipe
2711 FILE *mailpipe;
2726 mailpipe = popen(cmd, "w");
2728 if (mailpipe == NULL)
2730 (void) fprintf(mailpipe, "To: %s\n", p->name);
2731 (void) fprintf(mailpipe, "Subject: %s <%s@%s> %s\n",
2740 (void) fprintf(mailpipe, "Auto-Submitted: auto-generated\n");
2745 (void) fprintf(mailpipe, "X-Mailer: cron (%s %s)\n", name.sysname,
2747 (void) fprintf(mailpipe, "X-Cron-User: %s\n", p->name);
2748 (void) fprintf(mailpipe, "X-Cron-Host: %s\n", name.nodename);
2749 (void) fprintf(mailpipe, "X-Cron-Job-Name: %s\n", pr->jobname);
2750 (void) fprintf(mailpipe, "X-Cron-Job-Type: %s\n", lowname);
2757 (void) fprintf(mailpipe, "\n");
2761 (void) fwrite(iobuf, sizeof (char), nbytes, mailpipe);
2764 (void) fprintf(mailpipe, "Job completed with no output.\n");
2766 (void) pclose(mailpipe);