* Announcement: Package Shell
@ 2000-12-10 15:48 Gerd Stolpmann
2000-12-18 22:15 ` GIS kevin.rowanet
0 siblings, 1 reply; 3+ messages in thread
From: Gerd Stolpmann @ 2000-12-10 15:48 UTC (permalink / raw)
To: caml-list
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
----------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2000-12-22 9:07 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-12-10 15:48 Announcement: Package Shell Gerd Stolpmann
2000-12-18 22:15 ` GIS kevin.rowanet
2000-12-22 8:34 ` GIS Sven LUTHER
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox