capture output sent to poport in a list

Discussion in 'Cadence' started by eda support guy, Aug 13, 2003.

  1. Hi All,

    I m trying to get access to the data printed by a function that I
    cannot modify. The function returns it's exit status and that is nice,
    but I want access to what it prints. I thought I should ask here before
    I start doing something ugly (i.e place a "unique" marker in the CDS.log
    before and after the printout, and then access the result of a " sed
    '/marker/,/marker/' CDS.log " this by ipc* )

    Is there a clean way to get the output sent to poport ? Assuming I
    have procedure SupplierXYZ() that prints "hello\ncupcake\n" to poport,
    and returns t , what is the procedure CmCapture( funcxyz ) that will
    return ("hello" "cupcake) when I call

    CmCapture( SupplierXYZ() )

    ?
     
    eda support guy, Aug 13, 2003
    #1
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.