From: Fabian Braennstroem <f.braennstroem@gmx.de>
To: help-gnu-emacs@gnu.org
Subject: call-process problem
Date: Wed, 03 Oct 2007 11:28:33 +0000 [thread overview]
Message-ID: <fdvn9v$b3o$1@sycamore.fernuni-hagen.de> (raw)
Hi,
I would like to run a program with some arguments on the
current buffer. I would like to use call-process, because
the program has to run in background (even after closing emacs).
I actually tried some approaches using this function:
(defun fluent_journal ()
"Runs FLUENT on Journal File"
(interactive)
(let ((bname2 (substring (buffer-name) 0 (string-match
"\\.jou" (buffer-name)))))
(and
(file-exists-p (concat bname2 ".jou"))
;(shell-command (concat "fluent 3d --version 6.3.26
-gu < " bname2 ".jou > & log_" bname2 " &"))
; (call-process "fluent" nil 0 nil "3d" "--version"
"6.3.26" "-gu" "<" bname2 ">" "&" "log" ))
(call-process "fluent" nil 0 nil "3d" "--version
6.3.26 -gu <" bname2 "> & log" )) ))
The actual call on a terminal looks like:
fluent 3d --version 6.3.26 -gu < filename > & log
Does anyone know, how I have to define this 'call-process'?
Thanks!
Fabian
next reply other threads:[~2007-10-03 11:28 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-03 11:28 Fabian Braennstroem [this message]
2007-10-03 10:40 ` call-process problem Johan Bockgård
2007-10-03 13:39 ` Fabian Braennstroem
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='fdvn9v$b3o$1@sycamore.fernuni-hagen.de' \
--to=f.braennstroem@gmx.de \
--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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).