[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[h-e-w] Running scripts via call-process...
From: |
Jody Klymak |
Subject: |
[h-e-w] Running scripts via call-process... |
Date: |
Thu, 27 Mar 2003 08:07:40 -0800 |
User-agent: |
Gnus/5.090017 (Oort Gnus v0.17) Emacs/21.2 (windows-nt) |
Hi all,
I got as snippet of code from John Wiegley's site that calls some perl
scripts. I've found that I can't call anything script like using
call-process:
(defun test ()
(interactive)
(call-process "c:/jklymak/test.sh"))
always gives:
test: Searching for program: permission denied, c:/jklymak/test.sh
How can I trick ntemacs into running this anyways? The script,
test.sh, runs fine from cygwin.
My set-up is pretty standard and works fine for executables (i.e. pdflatex.exe)
(setq w32-quote-process-args ?\")
(setq shell-file-name "bash")
(setq process-coding-system-alist '(("bash" . undecided-unix)))
(setenv "SHELL" shell-file-name)
(setq explicit-shell-file-name shell-file-name)
(setq explicit-bash-args '("--login" "-i")) ; see shell.el
(setq shell-command-switch "-c")
(add-hook 'comint-output-filter-functions 'comint-strip-ctrl-m)
(setq exec-path (cons "c:/cygwin/bin/" exec-path))
(setq exec-path (cons "c:/cygwin/usr/local/bin/" exec-path))
(setq exec-path (cons "c:/cygwin/usr/bin/" exec-path))
Thanks for any help.
Cheers, Jody
--
Jody Klymak 104 Ocean Admin Bldg., OSU
mailto:address@hidden Corvallis OR, 97330
- [h-e-w] Running scripts via call-process...,
Jody Klymak <=