[SunHELP] Sendmail and KSH

Ravi Katti ravikatti at hotmail.com
Fri Apr 5 16:57:50 CST 2002


echo|/usr/lib/sendmail -v username < filename


----Original Message Follows----
From: William Enestvedt <Will.Enestvedt at jwu.edu>
To: "'Miley, Shain'" <SMiley at czn.com>
CC: "'sunhelp at sunhelp.org'" <sunhelp at sunhelp.org>
Subject: RE: [SunHELP] Sendmail and KSH
Date: Fri, 5 Apr 2002 14:44:27 -0500

 > Can someone point me toward a doc that gives some detail
 > about how to send email with sendmail from a KSH script?
 >
    I use mailx, like this:
cat /some/file | mailx -s "subject text' recipient at mail.domain
    Seems to work under /bin/sh, so there's no reason it won't work under
ksh; I don't have sendmail running all the time, but it starts up and send
out my messages whenever a script of mine asks it to.
-wde
--
Will Enestvedt
UNIX System Administrator
Johnson & Wales University -- Providence, RI
_______________________________________________
SunHELP maillist  -  SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp


_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com



More information about the SunHELP mailing list