Re: call an external program and save or show output



On Tue, Nov 18, 2003 at 10:35:28PM +0100, Benno Mielke wrote:
Hello !

Could anybody say how to call an external program (like gcc/g++ or nmap) ?
For example when I write a program that scans a host and I want to run nmap and show (and/or save ...) the 
output in a new widget. Is there a possibility ?

And I don't want to use the system() function :)

thanks in advance
popen()
fread()
pclose()
;-)

-- 
----------------
-- Katoob Main Developer
Can code, Test, ... ? Please Help xmms2!
Linux registered user # 224950
ICQ # 58475622
FIRST make it run, THEN make it run fast "Brian Kernighan".
--
Don't send me any attachment in Micro$oft (.DOC, .PPT) format please
Read http://www.fsf.org/philosophy/no-word-attachments.html
Preferable attachments: .PDF, .HTML, .TXT
Thanx for adding this text to Your signature

Attachment: pgppCQdstrI3m.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]