[Top][All Lists]

[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: Gecko/20070728 Thunderbird/ Mnenhy/


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"
    (let ((bname2 (substring (buffer-name) 0 (string-match
"\\.jou" (buffer-name)))))
       (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'?

reply via email to

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