i am running ocean scripts from command prompt like
ocean < script.ocn
in this case i see a lot of messages on the screen. I don't want to see all this messages. I want to see only messages that i need. The messages i will print with printf commands inside OCEAN script.
I know i can forward all outputs to file like
ocean < script.ocn > log.txt
but in this case AFAIK i will be unable to print anything on the screen
So, how can i hide all OCEAN output, but still be able to print on screen messages i need?
Sorry, fixed text
Use something like this in your OCEAN script:
fprintf(stderr "blah blah blah\n")
I just did this:
user> ocean -restore runSimMod.ocn > log.out
blah blah blah
All the main output goes into log.out, but anything fprintf'd to stderr appears on the screen.
It indeed works! Thank you so much, Andrew!
We also plan to add an environment setting to control this which can be added to the top of your OCEAN script:envSetVal("asimenv.misc" "includeSimLogInOCEAN" 'boolean nil)This isn't released yet; it's probably going to be in IC616 ISR6 (April 2014 timeframe). Also, there's a possibility it might change - but that's the current plan.Regards,Andrew.