[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Redirectin output of call-process to a file.
From: |
Barry Margolin |
Subject: |
Re: Redirectin output of call-process to a file. |
Date: |
Wed, 22 May 2013 13:07:40 -0400 |
User-agent: |
MT-NewsWatcher/3.5.3b3 (Intel Mac OS X) |
In article <20130522150337.2e98e8ba@pcolivier.chezmoi.net>,
Olive <diolu.remove_this_part@bigfoot.com> wrote:
> I am executing the following command:
>
> (call-process "/usr/bin/echo" nil (:file "/tmp/test.txt") nil "hello")
>
> According tothe documentaion this should redirect the output of th eproces to
> the file "/tmp/test.txt" but I have this error:
>
> Symbol's function definition is void: :file
>
> What am I doingwrong here? I use emcs 24.3.1 on GNU/Linux.
You need to quote the list, to prevent it from being evaluated as a
function call:
(call-process "/usr/bin/echo" nil '(:file "/tmp/test.txt") nil "hello")
--
Barry Margolin, barmar@alum.mit.edu
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***