Gentoo Archives: gentoo-user

From: tkhemili78 <tkhemili78@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] file with IP?
Date: Wed, 02 Nov 2005 15:51:44
Message-Id: 4368DEE8.8050905@gmail.com
In Reply to: Re: [gentoo-user] file with IP? by John Jolet
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

Replies

Subject Author
Re: [gentoo-user] file with IP? brullo nulla <brullonulla@×××××.com>