Fajar Priyanto wrote:
> Dear all,
> I have a dial-up server (it dials the ISP to provide internet connection
> for a small LAN) on a remote location.
> Now, I want to ssh to that server. Can I make somekind of script so that
> everytime it dials the ISP, it will send it's assigned IP to my email? All
> this time, everytime I want to ssh it, I call the local admin for the IP
> address.

Well, you can ask the admin to set a on-connection script to just be like:

#!/bin/bash
echo $YOUR_IP_ADDR | mail [EMAIL PROTECTED]

BTW, I have a dial-up connection too - I use KPPP that always shows my current 
IP address. 

> Errr... one more thing, it doesn't have qmail installed or neither sendmail
> or any other mailserver package. Can bash'es mail command handle it?

"mail" command usually needs /usr/sbin/sendmail to work.

On my 9.2 machine I have /usr/sbin/sendmail soft-linked to 
/etc/alternatives/mta so it makes postfix handle things as I guess.


Artemio.






Want to buy your Pack or Services from MandrakeSoft? 
Go to http://www.mandrakestore.com

Reply via email to