caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: Gerd Stolpmann <gerd@gerd-stolpmann.de>
To: caml-list@inria.fr
Subject: Announcement: Package Shell
Date: Sun, 10 Dec 2000 16:48:37 +0100	[thread overview]
Message-ID: <0012101656210H.00625@ice> (raw)

I've just completed another O'Caml package of general interest: Shell. It
contains everything needed to start commands which are connected by pipelines.
A few examples:

open Shell;;
call [ cmd "ls" [ "/dir1"; "/dir2" ]];;
  (* <=> ls /dir1 /dir2 *)

call [ cmd "find" [ "/dir" ]; cmd "grep" [ "something" ] ];;
  (* <=> find /dir | grep something *)

let s = "d\na\nc\nb\n" in
let b = Buffer.create 20 in
call ~stdin:(from_string s) ~stdout:(to_buffer b) [ cmd "sort" ];;
  (* <=> b=`sort <<_EOF_
         $s
         _EOF_`*)

For more information, visit the documentation page:

http://www.ocaml-programming.de/packages/documentation/shell/

Gerd
-- 
----------------------------------------------------------------------------
Gerd Stolpmann      Telefon: +49 6151 997705 (privat)
Viktoriastr. 100             
64293 Darmstadt     EMail:   gerd@gerd-stolpmann.de
Germany                     
----------------------------------------------------------------------------



             reply	other threads:[~2000-12-11 17:39 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2000-12-10 15:48 Gerd Stolpmann [this message]
2000-12-18 22:15 ` GIS kevin.rowanet
2000-12-22  8:34   ` GIS Sven LUTHER

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0012101656210H.00625@ice \
    --to=gerd@gerd-stolpmann.de \
    --cc=caml-list@inria.fr \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).