Cannot read all output result by using ipcReadProcess command.

Discussion in 'Cadence' started by Hon Seng Phuah, Jun 18, 2004.

  1. 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, Jun 18, 2004
    #1
  2. Hon Seng Phuah

    S. Badel Guest

    Hon Seng Phuah wrote:

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

    alternatively define callbacks in ipcBeginProcess().


    stéphane
     
    S. Badel, Jun 18, 2004
    #2
Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.