From mboxrd@z Thu Jan 1 00:00:00 1970 From: stardiviner Subject: How to let ob-shell to download file and get result as a link to file? Date: Mon, 26 Mar 2018 23:35:17 +0800 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="------------69E742EE18D901EE3D064523" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:34677) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1f0U9g-0003dy-4N for emacs-orgmode@gnu.org; Mon, 26 Mar 2018 11:35:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1f0U9b-0000W7-7v for emacs-orgmode@gnu.org; Mon, 26 Mar 2018 11:35:28 -0400 Received: from mail-pl0-x235.google.com ([2607:f8b0:400e:c01::235]:46080) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1f0U9b-0000Vk-09 for emacs-orgmode@gnu.org; Mon, 26 Mar 2018 11:35:23 -0400 Received: by mail-pl0-x235.google.com with SMTP id f5-v6so12147448plj.13 for ; Mon, 26 Mar 2018 08:35:22 -0700 (PDT) Received: from [0.0.0.0] ([119.28.89.243]) by smtp.gmail.com with ESMTPSA id z65sm9361587pgz.24.2018.03.26.08.35.19 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 26 Mar 2018 08:35:20 -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. --------------69E742EE18D901EE3D064523 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit I tried the following example: ``` #+begin_src shell :mkdir yes :dir "data/tmp" :results file :file "crackzor_1.0.c.gz" wget -c "http://ben.akrin.com/crackzor/crackzor_1.0.c.gz" #+end_src #+RESULTS: [[file:data/tmp/crackzor_1.0.c.gz]] ``` But the files is empty, I check out Org-mode document about `:file` header argument, seems org-babel will write result to `:file` specified file. I wander how I can handle upper case correctly? (don't write result to file, just insert a link to downloaded file as a result) --------------69E742EE18D901EE3D064523 Content-Type: text/html; charset=utf-8 Content-Transfer-Encoding: 7bit

I tried the following example:

```

#+begin_src shell :mkdir yes :dir "data/tmp" :results file :file "crackzor_1.0.c.gz"
wget -c "http://ben.akrin.com/crackzor/crackzor_1.0.c.gz"
#+end_src

#+RESULTS:
[[file:data/tmp/crackzor_1.0.c.gz]]
```

But the files is empty, I check out Org-mode document about `:file` header argument, seems org-babel will write result to `:file` specified file. I wander how I can handle upper case correctly? (don't write result to file, just insert a link to downloaded file as a result)

--------------69E742EE18D901EE3D064523--