Chinaunix

标题: Configuring red hat linux crontab [打印本页]

作者: OverSea    时间: 2004-09-04 12:00
标题: Configuring red hat linux crontab
Hello everyone,

I'm configuring my server and I want to make something like this.
I want to count the number of processes of a user and than if the number
is less than a threshold value, send an email to my email.

##########################################
#!/usr/bin/bash
processos=`ps -ef|grep portal|wc -l`
$processos= expr $processos
if $processos -lt 100 then
        echo "ortal em baixo" >; /usr/local/bin/test.txt
fi.
##########################################

OK NOW IS MY QUESTION:
How can I send an email from linux to my external email, using my
exchange server????

Regards,
OverSea




欢迎光临 Chinaunix (http://bbs.chinaunix.net/) Powered by Discuz! X3.2