Forum Discussion
Altera_Forum
Honored Contributor
9 years ago --- Quote Start --- You'll get the results you describe if your executable doesn't produce any output to STDOUT. Your script snippet works fine here. Changing your cmd variable to instead use Windows cmd.exe to run the "set" command, you get your environment dumped into Quartus messages.
set cmd "cmd /c set"
post_message "cmd: ${cmd}"
if { } {
post_message -type error "couldn't run $cmd"
} else {
post_message -type info "Command \"$cmd\" successful."
post_message -type info
}
If something basic as this doesn't work for you, not sure what next? Reinstall? If this works, then there's a problem with your .exe, or there is a problem executing your .exe from a script like this. --- Quote End --- Thanks ted. I appreciate all the help everyone. After playing around some more, I found my problem: The tcl file runs in the project root directory and therefore saves the files there. When I run my app independently, the files are saved in the same directory as the app, hence the reason for my confusion. The code that uses "open" as described above does work, I still seem to be having some issues with qexec and exec, but this does not hinder my progress. Thanks again.