unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Re: call-process problem
  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
  0 siblings, 1 reply; 3+ messages in thread
From: Johan Bockgård @ 2007-10-03 10:40 UTC (permalink / raw)
  To: help-gnu-emacs

Fabian Braennstroem <f.braennstroem@gmx.de> writes:

> 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'?

Try call-process-shell-command.

-- 
Johan Bockgård

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

* 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

* Re: call-process problem
  2007-10-03 10:40 ` Johan Bockgård
@ 2007-10-03 13:39   ` Fabian Braennstroem
  0 siblings, 0 replies; 3+ messages in thread
From: Fabian Braennstroem @ 2007-10-03 13:39 UTC (permalink / raw)
  To: help-gnu-emacs

Hi Johan,

Johan Bockgård schrieb am 10/03/2007 10:40 AM:
> Fabian Braennstroem <f.braennstroem@gmx.de> writes:
> 
>> 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'?
> 
> Try call-process-shell-command.

Thanks works nice, at least for a dummy-command... 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).