[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Shell commands with output to string
From: |
tomas |
Subject: |
Re: Shell commands with output to string |
Date: |
Tue, 22 Feb 2022 11:21:43 +0100 |
On Tue, Feb 22, 2022 at 09:38:35AM +0000, Zelphir Kaltstahl wrote:
> Corrections below.
>
> On 2/22/22 10:29, Zelphir Kaltstahl wrote:
> > Hello Guile users!
> >
> > How would I run a shell command from inside Guile and get its output as
> > a string, instead of the output being outputted directly? (Guile 3.0.8)
Sorry for the short answer (bad connectivity).
I think you want something like `popen' (use-modules (ice-9 popen)).
See the ref manual "Guile Modules" > POSIX > Pipes.
Cheers
--
t
signature.asc
Description: PGP signature
Re: Shell commands with output to string, Olivier Dion, 2022/02/22