all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Oleksandr Gavenko <gavenko@bifit.com.ua>
To: help-gnu-emacs@gnu.org
Subject: Re: Problem to run shell-command
Date: Thu, 26 Aug 2010 09:43:16 +0300	[thread overview]
Message-ID: <i552e3$379$1@dough.gmane.org> (raw)
In-Reply-To: <AANLkTikcvjBfgGXmFROALUWW8bLAq3kzs3PbmwhJSwi9@mail.gmail.com>

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)




  parent reply	other threads:[~2010-08-26  6:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-08-23 15:26 Problem to run shell-command filebat
2010-08-24 19:47 ` Oleksandr Gavenko
2010-08-25 16:16   ` filebat Mark
2010-08-25 18:04     ` Peter Dyballa
2010-08-26  6:43     ` Oleksandr Gavenko [this message]
     [not found]   ` <mailman.0.1282753005.3946.help-gnu-emacs@gnu.org>
2010-08-26  0:40     ` Barry Margolin

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='i552e3$379$1@dough.gmane.org' \
    --to=gavenko@bifit.com.ua \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.