From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: ob-octave.el raise error after execute src block Date: Fri, 23 Mar 2018 07:55:16 +0800 Message-ID: <0e2fe1ac-b9fd-c500-7816-2b4a428e749c@gmail.com> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------F2BB68EC0EC385BA60DB03A6" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45892) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ezA3L-00088X-E2 for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 19:55:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ezA3G-0005C2-EN for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 19:55:27 -0400 Received: from mail-pl0-x229.google.com ([2607:f8b0:400e:c01::229]:41912) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ezA3G-0005Bc-5z for emacs-orgmode@gnu.org; Thu, 22 Mar 2018 19:55:22 -0400 Received: by mail-pl0-x229.google.com with SMTP id b7-v6so6361201plr.8 for ; Thu, 22 Mar 2018 16:55:21 -0700 (PDT) Received: from [0.0.0.0] ([119.28.89.243]) by smtp.gmail.com with ESMTPSA id z13sm16401971pfk.129.2018.03.22.16.55.18 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 22 Mar 2018 16:55:19 -0700 (PDT) Content-Language: en-US List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: org-mode This is a multi-part message in MIME format. --------------F2BB68EC0EC385BA60DB03A6 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I got the following error after executing src block: ``` error: invalid call to script /usr/share/octave/4.2.2/m/help/ans.m ``` Here is my code: #+begin_src octave :results file :dir "data/images" :file "figure1.png" clf ();surf (peaks);saveas (1,"figure1.png");#+end_src --------------F2BB68EC0EC385BA60DB03A6 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

I got the following error after executing src block:

```

error: invalid call to script /usr/share/octave/4.2.2/m/help/ans.m

```

Here is my code:

#+begin_src octave :results file :dir "data/images" :file "figure1.png"
clf ();
surf (peaks);
saveas (1, "figure1.png");
#+end_src
--------------F2BB68EC0EC385BA60DB03A6--