1 |
Fastest way - dump into PHP, use some explodes and regexps. |
2 |
|
3 |
Most secured - App i C++ or C. |
4 |
|
5 |
Balanced Way - JAVA app :) |
6 |
|
7 |
W dniu 11 lipca 2010 11:46 użytkownik Mateusz Arkadiusz Mierzwinski < |
8 |
mateuszmierzwinski@×××××.com> napisał: |
9 |
|
10 |
> Wrote one in C,C++, Bash, Java or even PHP CLI ?? Try some... :) |
11 |
> |
12 |
> This file is Bash script. Every line comes with some portion of "variable = |
13 |
> variable data". It's realy simple. In PHP you can write simple script using |
14 |
> explode functions or regexp's. |
15 |
> |
16 |
> Good luck |
17 |
> |
18 |
> 2010/7/11 Amit Dor-Shifer <amitds@××××××.com> |
19 |
> |
20 |
> |
21 |
>> |
22 |
>> On 07/08/10 15:13, Remy Blank wrote: |
23 |
>> |
24 |
>>> Amit Dor-Shifer wrote: |
25 |
>>> |
26 |
>>> |
27 |
>>>> Can anyone recommend a tool that can parse networking info from a/m |
28 |
>>>> file, so one can use it to query, e.g. what is the static IP configured |
29 |
>>>> on eth0? |
30 |
>>>> |
31 |
>>>> |
32 |
>>> bash? |
33 |
>>> |
34 |
>>> No, I'm not joking. The file is a bash script, and hence can just be |
35 |
>>> sourced by another bash script, which could then print the relevant |
36 |
>>> information in any desired format. |
37 |
>>> |
38 |
>>> -- Remy |
39 |
>>> |
40 |
>>> |
41 |
>>> |
42 |
>> I'll try it out. |
43 |
>> However, as bash doesn't know net syntax, I'd still have to go the |
44 |
>> extra-mile for stuff such as extracting IP from the config_ variable, when |
45 |
>> that also contains a netmask (e.g. CIDR notation or "netmask" definition |
46 |
>> following the ip). |
47 |
>> Amit |
48 |
>> |
49 |
>> |
50 |
> |
51 |
> |
52 |
> -- |
53 |
> Mateusz Mierzwiński |
54 |
> |
55 |
> Bluebox Software http://www.blueboxsoft.pl/mateusz-mierzwinski |
56 |
> |
57 |
|
58 |
|
59 |
|
60 |
-- |
61 |
Mateusz Mierzwiński |
62 |
|
63 |
Bluebox Software http://www.blueboxsoft.pl/mateusz-mierzwinski |