Hi Andrew,
I 'am not using "-nograph" when running "ocean"
I tried to run my OCEAN script from the command line and even tried "virtuoso -restore myScript.ocn", it runs/executes and exits ocean session and virtuoso session respectively and returned back to the command line without any popup.
I also tried to do calling exit() twice in myScript.ocn and nothing happened. It did not return to main procedure.
Here is how I implemented your suggestion
proc main {design_user tool_u analysis_name} {
proc showOutput {channel} {
global finished
if {[eof $channel] || [catch {gets $channel line}]} {
close $channel
set finished 1
} else {
puts $line
}
}
set finished 0
set chan [open "| ocean -restore myScript.ocn"]
fconfigure $chan -buffering line
fileevent $chan readable [list showOutput $chan]
vwait finished
puts "NOTE: simulation has now finished"
main $design_user $tool_u $analysis_name
}
It seems that finished in vwait finished did not change? and myScript.ocn executes and did not return to main procedure after exit().
Thanks and Regards,
Reinice