Re: How to get a process output into a variable?
- From: Michal Jaegermann <michal harddata com>
- To: Ewan Mellor <sawfish ewanmellor org uk>
- Cc: sawfish-list gnome org
- Subject: Re: How to get a process output into a variable?
- Date: Tue, 13 Apr 2004 09:47:01 -0600
On Tue, Apr 13, 2004 at 12:41:02PM +0100, Ewan Mellor wrote:
>
> You want something like
>
> (let* ((str (make-string-output-stream))
> (proc (make-process str)))
> (call-process proc nil "cat" "/tmp/data")
> (let ((var (get-output-stream-string str)))
> (print var)))
Ah, thanks! So I was barking around the right tree but not quite.
Clearly my understanding how things are put together is still
lacking.
Michal
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]