Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Amit Dor-Shifer
On 07/09/10 20:37, James wrote: Amit Dor-Shiferamitdsat oversi.com writes: Can anyone recommend a tool that can parse networking info from a/m file, so one can use it to query, e.g. what is the static IP configured on eth0? Amit /sbin/ifconfig -a ??? if not, look at the

Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Amit Dor-Shifer
On 07/08/10 15:13, Remy Blank wrote: Amit Dor-Shifer wrote: Can anyone recommend a tool that can parse networking info from a/m file, so one can use it to query, e.g. what is the static IP configured on eth0? bash? No, I'm not joking. The file is a bash script, and hence can just

Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Mateusz Arkadiusz Mierzwinski
Wrote one in C,C++, Bash, Java or even PHP CLI ?? Try some... :) This file is Bash script. Every line comes with some portion of variable = variable data. It's realy simple. In PHP you can write simple script using explode functions or regexp's. Good luck 2010/7/11 Amit Dor-Shifer

Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Mateusz Arkadiusz Mierzwinski
Fastest way - dump into PHP, use some explodes and regexps. Most secured - App i C++ or C. Balanced Way - JAVA app :) W dniu 11 lipca 2010 11:46 użytkownik Mateusz Arkadiusz Mierzwinski mateuszmierzwin...@gmail.com napisał: Wrote one in C,C++, Bash, Java or even PHP CLI ?? Try some... :)

Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Kyle Bader
Most secured - App i C++ or C. Programs written in c++/c are not inherently secure, the programmer must make use of best practices using secure functions, etc. -- Kyle

Re: [gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-11 Thread Alan McKinnon
On Sunday 11 July 2010 19:26:17 Kyle Bader wrote: Most secured - App i C++ or C. Programs written in c++/c are not inherently secure, the programmer must make use of best practices using secure functions, etc. Programs are not inherently secure, the programmer must make use of best

[gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-09 Thread James
Amit Dor-Shifer amitds at oversi.com writes: Can anyone recommend a tool that can parse networking info from a/m file, so one can use it to query, e.g. what is the static IP configured on eth0? Amit /sbin/ifconfig -a ??? if not, look at the iproute, netstat, etc etc commands... hth,

[gentoo-user] Re: OT: tool for reading /etc/conf.d/net?

2010-07-08 Thread Remy Blank
Amit Dor-Shifer wrote: Can anyone recommend a tool that can parse networking info from a/m file, so one can use it to query, e.g. what is the static IP configured on eth0? bash? No, I'm not joking. The file is a bash script, and hence can just be sourced by another bash script, which could