Tim O'Brien wrote:
> 
> I'm trying to get one of the Linux boxes I run to send me it's IP address
> by Email every time it logs onto the Internet (it has a [EMAIL PROTECTED] 
> dynamic IP
> address). For some reason, the script doesn't work. It creates a file that
> contains the data it's supposed to (ipinfo.txt), but I never get the Email.
> However, typing
> 
>    mail -s IPINFO [EMAIL PROTECTED] < /etc/ppp/ipinfo.txt
> 
> on the command line causes the mail to be sent.. I'm baffled. Any ideas
> what I did wrong? (A copy of the ip-up script follows)

> echo Peer IP Number: $5 >> /etc/ppp/ipinfo.txt
> 
> mail -s IPINFO [EMAIL PROTECTED] < ipinfo.txt

Does it work if you put the full  pathname in the maili statement like
you 
do for the echo statements?

mail -s IPINFO [EMAIL PROTECTED] < /etc/ppp/ipinfo.txt 

-- 
...RickM...


--
TO UNSUBSCRIBE FROM THIS MAILING LIST: e-mail the word "unsubscribe" to
[EMAIL PROTECTED] . 
Trouble?  e-mail to [EMAIL PROTECTED] .

Reply via email to