capture output sent to poport in a list

E

eda support guy

Guest
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() )

?
 

Welcome to EDABoard.com

Sponsor

Back
Top