manifoldcf-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bisonti Mario <>
Subject R: How to notify mail by SMTP
Date Tue, 15 Jan 2019 16:13:06 GMT
I share a small script, if it could be useful for anyone,  to notify by mail if, some jobs
are not in “Done” status.
I schedule it in the morning, one time a day.


# Put on file jobstatuses
curl -u admin:admin http://localhost:8080/mcf-api-service/json/jobstatuses > /tmp/curljobstatuses.txt

# Count the number of jobs
numberjobs=$(grep -o -i '"job_id"' /tmp/curljobstatuses.txt | wc -l)

# Count the number of jobs in status “done”
numberdone=$(grep -o -i '{"_type_":"status","_value_":"done"}' /tmp/curljobstatuses.txt |
wc -l)

# If number of job in “Done” status are not equal to the number of job, I send an email
if [ $numberdone -ne $numberjobs ]
echo "There are Manifold Job non completed" | mail -s "Job MCF non completed"

exit 0

Da: Bisonti Mario
Inviato: giovedì 6 dicembre 2018 14:14
Oggetto: R: How to notify mail by SMTP

Hi Karl.
Yes, I created a “notification connection” but I haven’t the protocol SMTP available.
I see only “Host name” “Port” …

Da: Karl Wright <<>>
Inviato: giovedì 6 dicembre 2018 13:49
Oggetto: Re: How to notify mail by SMTP

Hi Mario, there is an email notification connector.  Have you tried to configure that?

On Thu, Dec 6, 2018, 3:50 AM Bisonti Mario <<>
I would like to notify by mail the end of a job.
I use an smtp server but I am not able how to configure this.

I read|dto=2019-4-30:smtp<>
but I understand that there is no way to configure with smtp now, isn’t it’

Thanks a lot Mario
View raw message