You might want to get a free account at www.yi.org or www.dyndns.org. From your linux box you just update their DNS when your IP address changes. Then use nslookup to find your IP address. If you opened an account with userid xxxyyy then "nslookup xxxyyy.yi.org" will show you your IP address. HTH, Bill -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of praedor Sent: Monday, December 04, 2000 8:36 PM To: [EMAIL PROTECTED] Subject: [expert] Setting up a mail cronjob I am not terribly up on scripting and assume that for what I want to do, it will require a script. I have a DSL connection with a dynamic ip from uswest. Every couple of days my ip address changes. I would like to keep myself, no matter where I am, abreast of the ip address of my system and one very simple way to do it is via mail. If I send myself mail from my linux box, then by looking at the header of the email from myself I can determine what my system's ip address is. I am thinking of setting up a cron job to mail my uswest email account every other day. When I am away from home and check my mail, I will be able to see what my home system's ip address is and always be able to connect to it via my cisco 675 DSL modem. I presently have a port forward setup on my cisco to allow ssh connections to my linux box but since my ip is dynamic, I have to change the nat table to fit the new ip address every few days. This email method will help me keep up on the ip address so I can always get in. I would like to setup a script that simply sends mail to my [EMAIL PROTECTED] mail account. Simply running "mail [EMAIL PROTECTED]" wont work since it subsequently wants a "Subject:", ctrl-D to end the message, and a "Cc:". I assume I need a script to handle this. I would like to simply send "ip address check" to the subject, nothing in the message body, and nothing in the cc field. Can anyone help me out here? Thank you, praedor
Keep in touch with http://mandrakeforum.com: Subscribe the "[EMAIL PROTECTED]" mailing list.