From: <pl...@pi...> - 2008-03-31 12:02:47
|
Hi, I appear to have hit a limitation on setting up a command string for system command. I have a "simple" bash command line that works in a terminal: bash-3.2#tail -n1 "../htdocs/data/adc.data"| awk 'format= " c3=%g\n c4=%g\n c5=%g\n" {printf format,$3,$4,$5}' >temps.tmp bash-3.2#cat temps.tmp c3=1.796 c4=1.676 c5=2.788 However, when I try to replicate this from within gnuplot is seems not to get correct send to awk system "tail -n1 '../htdocs/data/adc.data'| awk 'format= \" c3=%g\n c4=%g\n c5=%g\n\" {printf format,$3,$4,$5}' >temps.tmp " awk throws an error back to gnuplot: gnuplot> load "control.gnu" awk: format= " c3=%g awk: ^ unterminated string For some reason it seems not to see the second \" I have tried to rearrange this in different ways but it always seems to hit the same root cause. Is this a possible bug in the parser? Thx, Peter. |