On Mon, Jul 02, 2001 at 01:37:08PM -0700, Bob Crandell wrote:
>
>When I setup an internet box for a client that uses a dial-up account, I have it
>email the current address to me thusly:
>echo IP | mail [EMAIL PROTECTED] -s $4
>
>This works most of the time. Once in awhile one ISP or another complains about
>something being wrong with the email. Any of the users can email from Windows. ( I
>can't find an email with the error, or I would post it )
>
>An alternative to this would be to ftp a file with the address in it. How do I?
>Maybe something like: ftp server username passwd put pppaddr quit
>
>
You might be best off using scp ; you will need to set it up so that you
can scp from the sender to the destination without a password (probably
using RSA authentication). Or you could write an expect script and use
ftp or scp.
--
"That time in Seattle... was a nightmare. I came out of it dead broke,
without a house, without anything except a girlfriend and a knowledge of
UNIX." "Well, that's something," Avi says. "Normally those two are
mutually exclusive." --Neal Stephenson, "Cryptonomicon"