Quantcast
Channel: UNIX and Linux Forums
Viewing all articles
Browse latest Browse all 16232

Need help on conditional emailing

$
0
0
Hi All,

The following databse table maintains
VENDOR and EMAIL details.

Code:

VENOR_NAME VENDOR_EMAIL

DELL        surendra@dell.com
HP          rajkamal@hp.com
ACER        sumathi@acer.com
NOKIA      kunal@nokia.com
SONY        sinu@sony.com

We have to find emaild id of a vendor based on the vendor name
since email id can be change at any point of time.

The following files has to be emailed to corresponding vendor.

Code:

stock_dell_file
stock_hp_file
stock_acer_file
stock_nokia_file
stock_sony_file


If file is stock_dell_file then mail has to go to surendra@dell.com,
If file is stock_hp_file then mail has to go to rajkamal@hp.com,
If file is stock_acer_file then mail has to go to sumathi@acer.com, and so on.

Please help me on KSH.

Thanks.

Viewing all articles
Browse latest Browse all 16232

Trending Articles