I want to to send mails by using mailx command.
But how do I get each and every mail ids from table against each prog_name
I have used sql query and stored the email field values at text file.
Hi,
Do you need the email IDs to be read from the text file or from the database?
From the file, it is pretty much easy. From the database, you can use SQL Plus to read the field values from the database and store it in a variable for further processing. Use this link for code samples on how to use SQL Plus in Unix.