Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations sizbut on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

email reading

Status
Not open for further replies.

lent

MIS
Nov 1, 2001
6
US
Question posed:
Can a script be able to read/parse data from an email to the Aix/Unix system ???

This data would be either part of the message or attached ??

Thanks,

Len T
 
Yip, quite possible. Of course you will need to have a script which will be able to make sense of the input $1, there are a few out there.

To do it you will probably create yourself an email alias in the /etc/aliases file, something like this:

an_alias: |"/path/to/script.sh"

If you want to write the whole email contents to a file its even easier:

an_alias: /var/tmp/a_logfile.log

IBM Certified Confused - MQSeries
IBM Certified Flabbergasted - AIX 5 pSeries System Administration
MS Certified Windblows Rebooter
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top