For Programmers: Free Programming Magazines  


Home > Archive > Unix Programming > December 2006 > perl script to read data from database and generate a mail in HTML(in a particular f









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author perl script to read data from database and generate a mail in HTML(in a particular f
nm

2006-12-27, 7:03 pm

Hi all,

I want to write a perl script to read data from the database and
generate a mail in HTML...

The database contains following data:


CheckName SubSectionName LastComment

------------ -----------------
------------------------------------------------------------------------
abc-ODC DS SUCCESS::82::/home/ade/hfgf/kfhf/

abc-ODC DS SUCCESS::82::/home/ade/hfgf/kfhf/data/

abc-ODC PS ERROR::82:://home/ade/hfgf/kfhf/logs/

def-Pri DS SUCCESS::82::/home/archive/

def-Pri PS SUCCESS::FILE NOT FOUND



Mail format should be :


abc-ODC
----------------
DS
SUCCESS::82::/home/ade/hfgf/kfhf/
SUCCESS::82::/home/ade/hfgf/kfhf/data/

PS
ERROR::82:://home/ade/hfgf/kfhf/logs/

def-Pri
------------
DS
SUCCESS::82::/home/archive/

PS
SUCCESS::FILE NOT FOUND



Thanks,
Nitika

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com