[ale] is there a bash command to include a file in /etc/hosts?

Jim Kinney jim.kinney at gmail.com
Thu Jul 12 09:13:06 EDT 2012


+1
On Jul 12, 2012 8:45 AM, "leam hall" <leamhall at gmail.com> wrote:

> Wolf,
>
> You can sometimes source a file in bash with the ".". That is:
>
>   .    /etc/hosts
>
> Note the spaces there. However, I believe that will fail as sourcing is
> used when files are executed. The hosts file is read on reference by
> programs that need it. If you are trying to keep things separated by
> breaking up files, have you considered using "make" to rebuild your host
> file if any of the component files changes?
>
> Leam
>
>
> On Thu, Jul 12, 2012 at 7:26 AM, Wolf Halton <wolf.halton at gmail.com>wrote:
>
>> I have tried
>> source /path/to/file
>> and
>> include(/path/to/file)
>> without success.
>>
>> Wolf
>>
>> --
>> This Apt Has Super Cow Powers - http://sourcefreedom.com
>> Open-Source Software in Libraries - http://FOSS4Lib.org
>> Advancing Libraries Together - http://LYRASIS.org
>> Apache Open Office Developer wolfhalton at apache.org
>>
>>
>> _______________________________________________
>> Ale mailing list
>> Ale at ale.org
>> http://mail.ale.org/mailman/listinfo/ale
>> See JOBS, ANNOUNCE and SCHOOLS lists at
>> http://mail.ale.org/mailman/listinfo
>>
>>
>
>
> --
> Mind on a Mission <http://leamhall.blogspot.com/>
>
>
> _______________________________________________
> Ale mailing list
> Ale at ale.org
> http://mail.ale.org/mailman/listinfo/ale
> See JOBS, ANNOUNCE and SCHOOLS lists at
> http://mail.ale.org/mailman/listinfo
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.ale.org/pipermail/ale/attachments/20120712/b35607d0/attachment.html 


More information about the Ale mailing list