tcl - Why does "exec" gives "child exited abnormally" in this code? -


i running code in tcl:-

set version [exec grep "internal version:" mojave.log | sed -n -e "s/internal version: //g" > xor.diff]  set p [exec diff ../log.warning.diff ../log.warning.gold >> xor.diff ] 

for last line gives following error after doing diff:-

> rule-311 warning: gdsii layer number 85 datatype 0 has been defined > tcl-11   warning: command "check quartz drc" overridden, quality of > tcl-11   warning: command "delete marker quartz" overridden, quality of > tcl-11   warning: command "import marker quartz" overridden, quality of > tcl-11   warning: command "mojave! run filter log" overridden, quality of > tcl-11   warning: command "run quartz gui" overridden, quality of results > tcl-11   warning: command "ui! mojave draw rectangle" overridden, quality > tcl-11   warning: command "ui! mojave set_context" overridden, quality of > tcl-12   warning: overridden command "mojave! run filter log" used, child process exited abnormally      while executing "exec diff ../log.warning.diff ../log.warning.gold 2> xor.diff "      invoked within "set p [exec diff ../log.warning.diff ../log.warning.gold 2> xor.diff ]"      (file "test.tcl" line 4)      invoked within "source test.tcl" 

and not writing in "xor.diff" file.

exec returns error if command returns non-zero or if sends stderr. there's thorough discussion of using catch exec @ http://wiki.tcl.tk/exec


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -