Hello, I have written a Perl script that creates the dhcpd.conf and /
etc/hosts file for Red Hat Linux.  The data is derived from a single
text file.  What is stumping me is how to insert an automatic text
line for just the /etc/hosts part of my script that would
automatically insert a text line at the top of the /etc/hosts file
each time the script is run.

For instance, I want to make sure that at the top of my /etc/hosts
file it reads:
127.0.0.0 localhost.localhostdomain localhost

I have tried using "push" and "print", but have not made it work.  How
can I get my 127.0.0.0 to appear at the top of my /etc/hosts/ file
every time I run the script to create it?

Thank you!!


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to