Jörg Buchholz
2023-11-07 09:24:38 UTC
Hi,
i have a problem to use a system command from inside gnuplot.
sed -i 's/^\xef\xbb\xbf//' ./process-2023-11-02-13-04-40.csv
works at the terminal
system "sed -i 's/^\xef\xbb\xbf//' ./process-2023-11-02-13-04-40.csv"
and
system(sprintf("sed -i 's/^\xef\xbb\xbf//'
./process-2023-11-02-13-04-40.csv"))
in a gnuplot script do not work, but gnuplot shows me
GPVAL_SYSTEM_ERRNO = 0
GPVAL_SYSTEM_ERRMSG = "Success"
as a test I try
system "cp ./process-2023-11-02-13-04-40.csv
./process-2023-11-02-13-04-40.test"
this works, the file process-2023-11-02-13-04-40.test was created.
what's wrong?
Jörg
i have a problem to use a system command from inside gnuplot.
sed -i 's/^\xef\xbb\xbf//' ./process-2023-11-02-13-04-40.csv
works at the terminal
system "sed -i 's/^\xef\xbb\xbf//' ./process-2023-11-02-13-04-40.csv"
and
system(sprintf("sed -i 's/^\xef\xbb\xbf//'
./process-2023-11-02-13-04-40.csv"))
in a gnuplot script do not work, but gnuplot shows me
GPVAL_SYSTEM_ERRNO = 0
GPVAL_SYSTEM_ERRMSG = "Success"
as a test I try
system "cp ./process-2023-11-02-13-04-40.csv
./process-2023-11-02-13-04-40.test"
this works, the file process-2023-11-02-13-04-40.test was created.
what's wrong?
Jörg