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

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

call-process problem


From: Fabian Braennstroem
Subject: call-process problem
Date: Wed, 03 Oct 2007 11:28:33 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0

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



reply via email to

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