[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Problem to run shell-command
From: |
Oleksandr Gavenko |
Subject: |
Re: Problem to run shell-command |
Date: |
Thu, 26 Aug 2010 09:43:16 +0300 |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.8) Gecko/20100802 Thunderbird/3.1.2 |
On 25.08.2010 19:16, filebat Mark wrote:
Thanks, gavenkoa.
Well, could you have a try on your environment?
I am suspicious that shell-command of emacs doesn't support pipe, thus
the two commands fail.
What OS you run?
shell-command pass typed string to command interpreter like 'sh' or
'cmdproxy.exe'.
So you must type command that correspond to your command interpreter
language syntax.
Under Linux all work fine out of the box.
For Windows I use Cygwin (be ware put 'cygwin/bin' before
'windows/system32' in PATH).
Also check 'shell-file-name ' and try play with:
(setq shell-file-name (concat exec-directory "cmdproxy.exe"))
or like
(setq shell-file-name "bash")
(setq shell-command-switch "-c")
(setenv "SHELL" shell-file-name)