1 |
John Jolet wrote: |
2 |
|
3 |
>On Wednesday 02 November 2005 09:04, Jorge Almeida wrote: |
4 |
> |
5 |
> |
6 |
>>Anyone knows whether the current (dynamical) IP is stored in some text |
7 |
>>file? |
8 |
>>I know I can find the IP with ifconfig, but if the value were stored in |
9 |
>>some file I could setup a service to monitor the file for changes and |
10 |
>>take appropriate actions on change of IP. |
11 |
>> |
12 |
>> |
13 |
>man dhcpcd. there's a .cache file and a .info file...I think |
14 |
>in /var/lib/dhcpc |
15 |
> |
16 |
> |
17 |
>>-- |
18 |
>>Jorge Almeida |
19 |
>> |
20 |
>> |
21 |
> |
22 |
> |
23 |
> |
24 |
|
25 |
cat /var/lib/dhcpc/.cache >> /path/to/output/file -- theres another idea |
26 |
good lookin out |
27 |
|
28 |
-- |
29 |
gentoo-user@g.o mailing list |