--bg08WKrSYDhXBjb5
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

* Marc Shapiro <[EMAIL PROTECTED]>, 2002-10-01 20:46 -0400:
> As the subject says: Where do I find my IP address after I connect to my
> ISP with a dial-up account?  I am guessing that it is somewhere in
> 'proc', but I haven't figured out where.


#!/bin/sh
/sbin/ifconfig ${iface} | grep 'inet'  | cut -d: -f2 | cut -d " " -f1 | grep -v 127

or, graphically,

#!/bin/sh
xmessage -center $(/sbin/ifconfig ${iface} | grep 'inet'  | cut -d: -f2 | cut -d " " 
-f1 | grep -v 127)

(long lines)

-Andre

--bg08WKrSYDhXBjb5
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mlHFmlbrvn+0waMRAgfYAJ9LIHlLMAQCQXkHdG4ZMnf2p4TTEACghGSI
6YmP7w9+Zk2f1eO7skVSztg=
=4y6W
-----END PGP SIGNATURE-----

--bg08WKrSYDhXBjb5--


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to