[gambit-list] how to exec shell command then collect result as a string? (like with perl $a=`ls`; )

Guillaume Germain guillaume.germain at gmail.com
Sun May 27 15:31:52 EDT 2007


On 5/27/07, Naruto Canada <narutocanada at yahoo.ca> wrote:
>
> hi
>
> how to exec shell command then collect result as a
> string? (like with perl $a=`ls`;)
> I need to call maple and collect the result.
> shell-command seems to return only exit status.


You could do something like:

(read-line (open-process "ls") #f)


Guillaume
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.iro.umontreal.ca/pipermail/gambit-list/attachments/20070527/36051ec3/attachment.htm>


More information about the Gambit-list mailing list