[ Date Index ] [ Thread Index ] [ <= Previous by date / thread ] [ Next by date / thread => ]
Hi Thanks for the sample code, it works a treat. Have you done any GUI coding using C++, What are your views on QT 4, Kdevelop, Eclipse or something that would use Gnome objects. Have been using Bloodshed or g++ basic compliers for basic console apps. When i have tried Kdevelop etc i tend to get errors that pervent the app compiling and the errors don't have a odveous meaning , tried looking on google but as yet haven't resolved issues. I get a "undeclared (first use this function) " which i assume it can't find a lib/header. Do i need to change ENV/ SET variable to include the path of the lib? Regards Sam ----- Original Message ----- From: "Ross Bearman" <ross@xxxxxxxxxxxxxxx> To: <list@xxxxxxxxxxxxx> Sent: Saturday, September 06, 2008 8:44 PM Subject: Re: [LUG] C++ Experts >I believe you can do this using the popen() function. > > There's an example of how to do so here: > http://ubuntuforums.org/showpost.php?p=5507024&postcount=12 > > Regards, Ross Bearman > > > > On Sat, Sep 6, 2008 at 7:35 PM, Sam Grabham <sam@xxxxxxxxxxxxxxxxx> wrote: >> Hi >> >> Tinkering with C++ again. >> >> How should i capture OS system values like "netstat" and "traceroute" >> info >> etc, and use them within C++. >> >> Should i be using a C++ header that would allow to extract data from the >> OS? >> >> I have been using a SYSTEM(netstat -anopt | grep :21 >> temp.txt) then >> reading the data in via a loop, I would like to be able to pipe data into >> a >> variable so i can extract in memory and speed things up. I would like to >> be >> able to use basic bash commands to extract values i want. >> >> Regards >> >> Sam >> >> >> -- >> The Mailing List for the Devon & Cornwall LUG >> http://mailman.dclug.org.uk/listinfo/list >> FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html >> > > -- > The Mailing List for the Devon & Cornwall LUG > http://mailman.dclug.org.uk/listinfo/list > FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - http://www.avg.com Version: 8.0.169 / Virus Database: 270.6.18/1658 - Release Date: 9/7/2008 3:30 PM -- The Mailing List for the Devon & Cornwall LUG http://mailman.dclug.org.uk/listinfo/list FAQ: http://www.dcglug.org.uk/linux_adm/list-faq.html