Redirect Output in CIW when launching OCEAN skript

Discussion in 'Cadence' started by Fritz Lange, May 18, 2004.

  1. Fritz Lange

    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
     
    Fritz Lange, May 18, 2004
    #1
  2. 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.
     
    Andrew Beckett, May 19, 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.