[Kst] Windows Command Line

Barth Netterfield netterfield at astro.utoronto.ca
Tue Mar 8 17:54:53 UTC 2016


On March 8, 2016 05:05:02 PM Kornél Vári wrote:
> Dear KST Members!
> 
> I am working on a windows 7 PC and writing a C program which calls the KST
> to plot curves from a .txt file with " ; " delimiter.
> the source's first row contains the label of the  columns.
> 
> I am using absolute path to call kst2.exe
> 
> with system call function it looks like this:
> 
> system("c:\tmp\kst\bin\kst2.exe -f 2 --png filename.png filename.txt");
> 
> i have also tried
> 
> system("c:\tmp\kst\bin\kst2.exe -f 2 filename.txt -y 2 -y 3 --png
> filename.png");
> system("c:\tmp\kst\bin\kst2.exe filename.txt -f 2 -y 2 -y 3 --png
> filename.png");
> 
> but i only have a blank png or the index plotted and the other columns at 0.
> I don't know what causes the problem, the only thing i can imagine, is that
> the program doesn't automatically recognize the " ; " as a delimiter and
> it's looking forward to a \t or " , " .

It defaults to whitespace delimeted.  Try

c:\tmp\kst\bin\kst2.exe --asciiDelim ";" filename.txt -f 2 -y 2 -y 3 --png filename.png

ie, with proper escaping, I think:

system("c:\tmp\kst\bin\kst2.exe --asciiDelim \";\" filename.txt -f 2 -y 2 -y 3 --png 
filename.png")


> 
> I hope that one of you can help me to solve this problem
> 
> Looking forward your answer:
> -Kornél

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kst/attachments/20160308/8ba69fb6/attachment.html>


More information about the Kst mailing list