Altera_Forum
Honored Contributor
8 years agoqsys-script: no output on stdout when called from TCL script
Since the TCL interpreter in qsys-script is very limited and outdated I want to reduced the amount of work done via qsys-script to the absolute minimum. However when I call qsys-script from another TCL script I get no output, presumably because of some Java magic in the background. My snipped is as follows:
set qsys_path
set qsys_system toplevel.qsys
set qsys_script qsys-test.tcl
if { == 0} {
puts $result
} else {
post_message -type error "Error executing qsys-script: $result"
}
while the following works as expected:
if { == 0} {
puts $result
} else {
post_message -type error "Error executing ls: $result"
}
Any ideas how to overcome this other than the output to an intermediate file?