Redirect Output in CIW when launching OCEAN skript

F

Fritz Lange

Guest
Hi,

Does somebody know how to pipe the output of a skript launched with the
load("skriptname.ocn") command to a log file?

I did not find any option to that topic in the documentation

Thanks for any suggestion

Norman
 
Hi Norman,

There's a function, hiStartLog(), and another (you've guessed it), hiEndLog()
which allow you to send all log data to an additional second file.

Alternatively you make your OCEAN script write to a port, which could default
to poport, but could be changed to be the result of an outfile.

For example:

procedure(myOCEAN(@optional (OCNport poport)
...
fprintf(OCNport "Blah blah\n")
ocnPrint(?output OCNport ...)
)

then:

load("myOCEAN.ocn")
output=outfile("./output.txt")
myOCEAN(output)
close(output)

Regards,

Andrew.

On Tue, 18 May 2004 10:36:29 +0200, "Fritz Lange" <fl@web.de> wrote:

Hi,

Does somebody know how to pipe the output of a skript launched with the
load("skriptname.ocn") command to a log file?

I did not find any option to that topic in the documentation

Thanks for any suggestion

Norman
--
Andrew Beckett
Senior Technical Leader
Custom IC Solutions
Cadence Design Systems Ltd
 

Welcome to EDABoard.com

Sponsor

Back
Top