[Top][All Lists]

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

Re: Retrieve output from command

From: Manuel Giraud
Subject: Re: Retrieve output from command
Date: 02 Aug 2001 10:55:32 +0200
User-agent: Gnus/5.0808 (Gnus v5.8.8) Emacs/20.7

Thien-Thi Nguyen <address@hidden> writes:

>    From: Manuel Giraud <address@hidden>
>    Date: 31 Jul 2001 17:43:45 +0200
>    I'm trying to get the result of the command "ls" in a list, for
>    example: 
>          (define l (system->list "ls"))
>    I've tried 'system' but it doesn't work since it returns the exit code
>    of the command. Maybe, I will be able to do that using port, but maybe
>    there's already a library to do such things.
> see
> look for module `(ttn shell-command-to-string)' which includes
> `shell-command->string' and `shell-command->list'.

Thanks for answers! Since I'm bit lazy I think that using some already
written and modularized code is a good idea.

"Never imagine yourself not to be otherwise than what it might appear
to others that what you were or might have been was not otherwise than
what you had been would have appeared to them to be otherwise"
  The Duchess

_Manuel Giraud_

reply via email to

[Prev in Thread] Current Thread [Next in Thread]