Cannot read all output result by using ipcReadProcess comman

H

Hon Seng Phuah

Guest
Hi all,

I need some helps on getting an output result after executing
ipcBeginProcess command.

In my SKILL script, I have:

executeCommand = "runCommand"
cid = ipcBeginProcess(executeCommand "" nil nil nil "")
ipcWait(cid)
outputResult = ipcReadProcess(cid)
printf("%s" outputResult)

If I run "runCommand" command prompt, I get at least 20 lines. For the
above skill script, it only displays one line. For your information,
the runCommand is perl script and invokes a few CVS commands. If I
want to get all runCommand output result like command prompt, is there
any option for me to do it?

Thanks.

-HS Phuah
 
Hon Seng Phuah wrote:

try using
while( outputResult=ipcReadProcess(cid)
printf("%s" outputResult)
) ; while

alternatively define callbacks in ipcBeginProcess().


stéphane

Hi all,

I need some helps on getting an output result after executing
ipcBeginProcess command.

In my SKILL script, I have:

executeCommand = "runCommand"
cid = ipcBeginProcess(executeCommand "" nil nil nil "")
ipcWait(cid)
outputResult = ipcReadProcess(cid)
printf("%s" outputResult)

If I run "runCommand" command prompt, I get at least 20 lines. For the
above skill script, it only displays one line. For your information,
the runCommand is perl script and invokes a few CVS commands. If I
want to get all runCommand output result like command prompt, is there
any option for me to do it?

Thanks.

-HS Phuah
 

Welcome to EDABoard.com

Sponsor

Back
Top