dhcpsend: a script to send DHCP ip to a server
#a script to send DHCP ip to a server ifconfig | grep inet | grep 129 | sed 's|Bcast.*||g' | sed 's|.*:||g' | sed 's| *||g' > /tmp/ip dinip=`cat /tmp/ip` echo $dinip scp /tmp/ip username@server:path cd ~ cp bashrc.tpl .bashrc sed -i "s/fixedipdemo/$dinip/g" .bashrc