How can I run a csh script from a tcl script?

三世轮回 提交于 2019-12-05 15:40:18

The csh script is indeed run for you, but by default its standard output becomes the result of the Tcl exec command (and if it produced anything on standard error, that would become an error result of the exec). To make the output and error appear on the terminal, you have to modify the exec like this:

exec /bin/csh -c $synthesis >@stdout 2>@stderr

The >@ says “redirect standard output to the following channel” (stdout in this case), and the 2>@ does the same for standard error.

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!