[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-devel
Subject: Re: Problems KProcess using parameter 1>
From: Bernd Gehrmann <bernd () physik ! hu-berlin ! de>
Date: 1999-06-15 18:58:48
[Download RAW message or body]
On Tue, 15 Jun 1999 Andreas Reuter wrote:
>Harri Porten wrote:
>> > the following fragment doesn´t work:
>> > KProcess dummyProc;
>> > dummyProc << "ls" << "-l" << "/usr" << "1>/tmp/ls-usr.txt";
>> > dummyProc.start( KProcess::Block, KProcess::All );
>> (Without looking at the sources) I would say that KProcess closes stdout
>> and connects to '1' itself.
That's one thing. The other is that 'ls' certainly does not
interpret the parameter '1>...' as an output redirection.
If you want to use wildcards, IO redirection, pipes and
environment variables in a program call, you must use
KShellProcess, not KProcess.
Bernd
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic