sreangsu acharyya rearranged electrons thusly:

>   Time to time i update that. Now instead of su ing everytime i though i
> would do something like this:write a one line script as root containing
> echoe -e "127.0.0.1 /t $1">>/etc/hosts
 
You _have_ to su in, iirc.  Or at least be logged in as root.
In sun boxes, /etc/hosts, sendmail.cf etc are write protected by default - you
have to save with :wq! if you want to change them.

-s


----------------------------------------------
Find out more about this and other Linux India 
mailing lists at http://lists.linux-india.org/

Reply via email to