[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: starting external program
From:       Josef Spillner <dr_maux () maux ! de>
Date:       2001-09-14 22:30:58
[Download RAW message or body]

On Saturday 15 September 2001 00:01, Andreas Richter wrote:
> i mean a program that start and run independence from the calling execute.

How about:
KProcess *process = new KProcess();
*process << "progname" << "arg1" << "arg2";
connect(process, SIGNAL(processExited(KProcess*)), 
SLOT(procreturn(KProcess*)));
ret = process->start();

This is documented in:
http://developer.kde.org/documentation/library/2.1-api/classref/kdecore/KProcess.html
Although it only seems to work when created with 'new'...

Josef

-- 
The MindX Open Source Project: Fighting proprietary games
GGZ now! - The GGZ Gaming Zone: http://ggz.sourceforge.net
ggz.morat.net | ggz.snafu.de | jzaun.com | mindx.sourceforge.net/europeone
 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic