Click to See Complete Forum and Search --> : Automated Email From DHCP client
geraldy
08-29-2002, 02:37 PM
i live in austin and work in houston. my home system in houston has DHCP cable-modem service. i would like to be able to remotely access it after a reboot if the ip changes so i would like to see how i can automatically generate an email with the updated ip address after a reboot. i'm sure it's a simple sript, but i'm fairly new to linux and need assistance with the process. thanks. running mandrak 8.2 with blackbox on the PIII home system and fluxbox on the PII laptop.
long live the linux community. thanks in advance for the help.
jumpedintothefire
08-29-2002, 10:15 PM
Which dhcp client are you running??
geraldy
08-29-2002, 11:06 PM
i'm running the standard dhcpd that comes with mandrake
jumpedintothefire
08-29-2002, 11:56 PM
Need more info than that....
from a command prompt as root try:
ps -A
Should be pump or dhcpcd, which do you see??
geraldy
08-30-2002, 12:52 AM
it is dhcpcd, pump is not listed
jumpedintothefire
08-30-2002, 02:22 AM
good I use that... whew..... /etc/dhcpc/dhcpcd-eth0.info should have that info. /etc/dhcpc/dhcpcd-eth0.exe will get executed with a change in ipaddress, if that file exists. That is what you can use to trigger the email, make syslink to a shell script to run what ever commands you need to create the email. How to creating that email, I'm not to sure about... sorry. I like to see this working thou...
hope this helps...