unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* call-process problem
@ 2007-10-03 11:28 Fabian Braennstroem
  2007-10-03 10:40 ` Johan Bockgård
  0 siblings, 1 reply; 3+ messages in thread
From: Fabian Braennstroem @ 2007-10-03 11:28 UTC (permalink / raw)
  To: help-gnu-emacs

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2007-10-03 13:39 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-10-03 11:28 call-process problem Fabian Braennstroem
2007-10-03 10:40 ` Johan Bockgård
2007-10-03 13:39   ` Fabian Braennstroem

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).