On Tue, 22 Dec 1998, Dick wrote:

> address denoted in the "dot" notation.  ie.  would like to send a command
> line like this:
> 
> mail -s "my ppp address is xxx.xxx.xxx.xxx" -u [EMAIL PROTECTED]

I do exactly this with my pppd/diald scripts from the ip-up script.  The 
parameters that are pased to ip-up by pppd make this quite handy.

/bin/echo "Executing: $0 $*" > /etc/ppp/args.$6
/bin/mail -s "My New Hostname: $4" [EMAIL PROTECTED] < ./args.$6

The parameters that are passed to ip-up are detailed in pppd man page, but
$4 is the local and $5 is the remote dynamic IP addreses, $6 is a
parameter that you can decide in ip-up to do special things according the
pppd invocation.  See the man page.  If you have a cell phone with text
messaging, ip-up can if desired, use mail to send you a text message when
ever a connection is made.

> script.  Also, if there's an easy way to assign the DNS servers via a
> command line or a script, that would be better, then I could put
> [EMAIL PROTECTED] in the script instead of the yyy.yyy.yyy.yyy type thing.

Well, it is possible to run procmail on the receiving end and set up a
rule that will intercept the mail message that is being sent by the
machine establishing the connection, you can extract any needed data from
the mail message and then execute any networking commands that you might
like on the receiving end.  You are of course at some risk here of being
cracked but FrankZ was right in claiming that the meek shall inherit
nothing.  

Ed Welbon [EMAIL PROTECTED]
To hell with horses and women, I want older whiskey.
http://www.bga.com/~welbon/linux.config
ln -sf /dev/null cookies

---------------------------------------------------------------------------
Send administrative requests to [EMAIL PROTECTED]

Reply via email to