Path: csiph.com!news.mixmin.net!eternal-september.org!feeder2.eternal-september.org!news.eternal-september.org!.POSTED!not-for-mail From: =?UTF-8?Q?J=C3=B6rg_Buchholz?= Newsgroups: comp.graphics.apps.gnuplot Subject: command from inside gnuplot Date: Tue, 7 Nov 2023 10:24:38 +0100 Organization: A noiseless patient Spider Lines: 31 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit Injection-Date: Tue, 7 Nov 2023 09:24:39 -0000 (UTC) Injection-Info: dont-email.me; posting-host="edbf46aefe41a627b35abc3c5e0bd7be"; logging-data="1003637"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1/l/Lh+2+doppdPdxt8V1lDSCddwbmiEjg=" User-Agent: Mozilla Thunderbird Cancel-Lock: sha1:qR42kfB5Z04saBdT3V+AoxRKcTQ= Content-Language: en-GB Xref: csiph.com comp.graphics.apps.gnuplot:4549 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