hi joebert, echo "man3" |mail -s service [EMAIL PROTECTED]
this works with RH7.3. the email is sent successfully. in RH8 and RH9 Im having this error: Who are you?: Permission denied thanks in advance On Thursday 08 July 2004 15:38, you wrote: > On Thu, 2004-07-08 at 07:23, alben benavente alteza wrote: > > Actually the service I mention is just an example. I have some scripts > > which detects and log whatever malfunction in its routine function. > > if u have lets say a script called check_service.sh that detects and log > etc.. then pipe the output of your script to the mail program: > > check_service.sh | mail -s service [EMAIL PROTECTED] > > this is if ur script sends its output to stdout. > > > I just need to > > incorporate a mailer script to that so I could also recieve the problem > > detail via email. > > > > Hope you have more idea to enlighten me. > > > > thanks > > > > On Thursday 08 July 2004 14:32, Joebert Jacaba wrote: > > > On Thu, 2004-07-08 at 05:53, alben benavente alteza wrote: > > > > Godd day!! > > > > > > > > Does anyone have a script that will send mail? > > > > > > > > My machine is not a mail server, just another server. I want it to > > > > email me when ever its service gone down by means of a mailing > > > > script. > > > > > > i think what u need is a script to check if that particular service > > > (what is it?) goes up or down then just pipe it to mail (man mail). for > > > me i use nagios (www.nagios.org) for a comprehensive checking of > > > services (it has mail alerts, too). i also write some plugins to check > > > services not covered by nagios-plugins. > > > > > > > The script will be run by cron I guess. > > > > > > > > Thanks > > > > > > This message has been scanned by Webshield! > > This message has been scanned by Webshield! -- Alben Benavente Alteza Information Systems Security and Internet Services Administration Information Systems Department / Philippine Airlines -- Philippine Linux Users' Group (PLUG) Mailing List [EMAIL PROTECTED] (#PLUG @ irc.free.net.ph) Official Website: http://plug.linux.org.ph Searchable Archives: http://marc.free.net.ph . To leave, go to http://lists.q-linux.com/mailman/listinfo/plug . Are you a Linux newbie? To join the newbie list, go to http://lists.q-linux.com/mailman/listinfo/ph-linux-newbie
