Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
* commands.getoutput () in ocaml?
@ 2007-08-22 19:56 Luca de Alfaro
  2007-08-22 20:05 ` [Caml-list] " malc
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Luca de Alfaro @ 2007-08-22 19:56 UTC (permalink / raw)
  To: caml-list

[-- Attachment #1: Type: text/plain, Size: 366 bytes --]

Dear All,

I am looking for a quick way to do the equivalent of

s = commands.getoutput ("ls " + name + "*")

in Ocaml.

Unix.system does perform a call, but the output of the call is not
returned... yes, I can redirect it to /tmp/output.ocaml and then read the
file, or even go crazy and build pipes, but is there a more elegant (read:
succint) way to do it?

Luca

[-- Attachment #2: Type: text/html, Size: 429 bytes --]

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2007-08-23 17:07 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-08-22 19:56 commands.getoutput () in ocaml? Luca de Alfaro
2007-08-22 20:05 ` [Caml-list] " malc
2007-08-22 20:10   ` malc
2007-08-22 20:11 ` Dave Benjamin
2007-08-22 21:32   ` Luca de Alfaro
2007-08-22 22:11     ` Yitzhak Mandelbaum
2007-08-22 22:13     ` Daniel Bünzli
2007-08-22 22:35   ` Olivier Andrieu
2007-08-22 23:04     ` Eric Cooper
2007-08-22 22:52       ` Dave Benjamin
2007-08-23  4:03       ` Dave Benjamin
2007-08-23 17:07         ` Eric Cooper
2007-08-23 15:24   `  Dr. Axel Poigné 
2007-08-22 20:17 ` Brian Hurt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox