From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Fabian Braennstroem <f.braennstroem@gmx.de> Newsgroups: gmane.emacs.help Subject: call-process problem Date: Wed, 03 Oct 2007 11:28:33 +0000 Organization: FernUni Hagen Message-ID: <fdvn9v$b3o$1@sycamore.fernuni-hagen.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1191408056 29513 80.91.229.12 (3 Oct 2007 10:40:56 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 3 Oct 2007 10:40:56 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Oct 03 12:40:52 2007 Return-path: <help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org> Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1Id1ej-0003js-Kh for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 12:40:41 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Id1ef-00025m-7R for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Oct 2007 06:40:37 -0400 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news-fra1.dfn.de!news-koe1.dfn.de!sycamore.fernuni-hagen.de!news.fernuni-hagen.de!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 29 Original-NNTP-Posting-Host: pd9e492be.dip0.t-ipconnect.de Original-X-Trace: sycamore.fernuni-hagen.de 1191403647 11384 217.228.146.190 (3 Oct 2007 09:27:27 GMT) Original-X-Complaints-To: newsadmin@fernuni-hagen.de Original-NNTP-Posting-Date: Wed, 3 Oct 2007 09:27:27 +0000 (UTC) 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 Original-Xref: shelby.stanford.edu gnu.emacs.help:152561 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor <help-gnu-emacs.gnu.org> List-Unsubscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=unsubscribe> List-Archive: <http://lists.gnu.org/pipermail/help-gnu-emacs> List-Post: <mailto:help-gnu-emacs@gnu.org> List-Help: <mailto:help-gnu-emacs-request@gnu.org?subject=help> List-Subscribe: <http://lists.gnu.org/mailman/listinfo/help-gnu-emacs>, <mailto:help-gnu-emacs-request@gnu.org?subject=subscribe> Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:48070 Archived-At: <http://permalink.gmane.org/gmane.emacs.help/48070> 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