[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Passing an input file through mail.



Heres the deal - I dial into my ISP, and get allocated a random IP
address, ie. I do not have a static IP, and cannot obtain one with my
current ISP.

What I would like to do, is on dialing in, pipe my ifconfig ppp0 to a
file, and mail that to my work address as follows:

ifconfig ppp0 > ipaddy
mail -s IP copo@commerce.wa.gov.au < ipaddy

Doing this, according to my sendmail logs, generates a Data Format
Error. Any way I can achieve this using the above approach, or is there a
better alternative I am not aware of?

Cheers,
 Corey Popelier
 http://members.dingoblue.net.au/~pancreas
 Work Email: copo@commerce.wa.gov.au



Reply to: