help-emacs-windows
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [h-e-w] Running scripts via call-process...


From: Eli Daniel
Subject: RE: [h-e-w] Running scripts via call-process...
Date: Thu, 27 Mar 2003 13:57:51 -0500

> address@hidden writes:
> 
> > Try something like  (untested):
> >   (call-process "c:/cygwin/usr/bin/bash.exe -c /c/jklymak/test.sh")
> 
> Unfortunately this, "cmd /c test.sh", and similar invocations give:
> (bash is in /bin on my Cygwin).
> 
> test: Searching for program: no such file or directory,
> c:/cygwin/bin/bash.exe -c c:/jklymak/test.sh
> test: Searching for program: no such file or directory, cmd /c
> c:/jklymak/test.sh

Jody, the first argument to call-process is the path to the executable; with
that invocation, you're trying to run an executable called
"c:/cygwin/usr/bin/bash.exe -c /c/jklymak/test.sh", which obviously doesn't
exist.  You need to provide the arguments separately from the path to the
program to run.  

See the documentation for call-process for details (C-h f call-process RET).
Something like 

(call-process "c:/cygwin/usr/bin/bash.exe" nil nil nil "-c"
"/c/jklymak/test.sh")

should work.

-Eli







reply via email to

[Prev in Thread] Current Thread [Next in Thread]