Check out Mail::Sendmail at 
http://search.cpan.org/search?mode=module&query=mail%3A%3Asendmail

* Wood, Richard ([EMAIL PROTECTED]) spake thusly:
> 
> 
> All,
> 
> This is part of what I have,  if the service is not equal to 1,  how would I
> issue a command to email someone?  Can not find this in
> the literature.
> 
> #### Check certain ARS stuff
> #1) Check for the availability of telalert
> $telalertcheck=`ps -ef | grep telalertd | grep -v grep`;
> $telreturn=$?;
> &logmesg("$telreturn","Urgent telalertd process (on $host) indicates the
> process is down");
> ##2) check other ars process
> 
> if (telreturn != 1) {
>       
> 
> 
>       }
> elsif (telreturn == 1)
>       {
> 
> Thanks,
> 
> Richard
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
 ____) ,_)        ,_)
(-(__  |_  _  _ |/
 ____) | |(_)(_ |\
(                 \_,
 _______________________________________________
| http://www.exitwound.org    : hard to find    |
| http://www.buckowensfan.com : he's the man    |
 _______________________________________________
| Keep your boss's boss off your boss's back.   |
 _______________________________________________
 -------------BEGIN GEEK CODE BLOCK-------------
| Version: 3.1                                  |
| GJ/IT d- s: a C+++>$ UL++++ P+++ L+++ E--- W++| 
| N+@ o K- w O- M- V PS+ PE Y+ PGP++ t+@ 5@ X++ |
| R tv+@ b+ DI++++ D+ G++ e++++ h---- r+++ y+++ |
 --------------END GEEK CODE BLOCK--------------

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to