Re: How to get a process output into a variable?

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


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