Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 14 Nov 2006 10:00:18 -0800 (PST)
From:      subba <subba@t8design.com>
To:        freebsd-rc@freebsd.org
Subject:   How to read ifconfig in FreeBSD..Help plss
Message-ID:  <7342892.post@talk.nabble.com>

next in thread | raw e-mail | index | archive | help

Hi,

I have to write console menu set up, where user can change the IP ,
netmask,gateway settings etc.
To Start with i need to read 'ifconfig' and get the 'ip' and 'netmask' and
store it in a file and read the file to get the output. Can somebody help me
in reading the IP and others from ifconfig...
I am trying to use
char *cmd[] = { "ifconfig","-a",(char *)0 }
execv("/sbin/ifconfig,cmd);

If there is a better solution to have the console set up, I would love to
know it...I'd appreciate your help.

Thanks,
Subba
-- 
View this message in context: http://www.nabble.com/How-to-read-ifconfig-in-FreeBSD..Help-plss-tf2631184.html#a7342892
Sent from the freebsd-rc mailing list archive at Nabble.com.




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?7342892.post>