On Monday 10 November 2003 02:10 pm, Richard Urwin wrote: > > Since the local addressing scheme in place at my company is quite unique > > I would even be open to doing something like having a script called in > > rc.local check to see what the network ip block of the local network is > > and writing out a hosts file that would have an entry for the server if I > > am on the right network, although I have no idea how to actually > > implement that. > > You mean something like: > > cp /etc/hosts.base /etc/hosts > if (/sbin/ifconfig eth0 | grep 192.168.7>/dev/null) > then cat /etc/hosts.extra >> /etc/hosts > fi > > (test it first, of course) > HTH
Thank you for that. I would make a terrible programmer. It seems so obvious now after seeing your simple script. -- /g "Outside of a dog, a man's best friend is a book, inside a dog it's too dark to read" -Groucho Marx
Want to buy your Pack or Services from MandrakeSoft? Go to http://www.mandrakestore.com