FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 06-07-2011, 04:08 PM
Mike Mestnik
 
Default SOLVED (hopefully perl) API to /etc/network/interfaces?

On 05/31/11 23:23, Mike Mestnik wrote:
> On 05/26/11 17:16, Mike Mestnik wrote:
>> In-Reply-To: <20080412023656.GR14599@yi.org>
>>
>> Hello,
>> This is an old thread, but I find myself in a similar situation. I'd
>> like to edit a 4in6 tunnel endpoint and reconfigure the interface.
>> While I can handle the Apache/sudo parts of this I'm stuck with... OK
>> now how and I going to change this one value out of this whole file?
>>
>> My current plan is to convert the file to XML storing away comments and
>> partial white space as well as the settings. Then I should be able to
>> edit the setting a write the file back out.
>>
>> Any better ideas? For this project Perl seams to be the ideal language.
>>
>> I may contact the ifupdown maintainer to include this in his package, so
>> I'm looking to get it done right.
>>
> I'm quite certain this is a some-what usable solution. However it
> dosen't appear to have any means to preserver order. I'd also like
> input for the XMLers about the use of etc_network_interfaces for the
> RootName?
I've packaged this code as a [1]CPAN module.

1. http://search.cpan.org/~cheako/XML-Debian-ENetInterfaces/

Happy hacking.



--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 4DEE4D1A.7030502@mikemestnik.net">http://lists.debian.org/4DEE4D1A.7030502@mikemestnik.net
 

Thread Tools




All times are GMT. The time now is 12:17 AM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org