Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
|
|
@ -0,0 +1,14 @@
|
|||
#load "unix.cma"
|
||||
|
||||
let syscall cmd =
|
||||
let ic, oc = Unix.open_process cmd in
|
||||
let buf = Buffer.create 16 in
|
||||
(try
|
||||
while true do
|
||||
Buffer.add_channel buf ic 1
|
||||
done
|
||||
with End_of_file -> ());
|
||||
let _ = Unix.close_process (ic, oc) in
|
||||
(Buffer.contents buf)
|
||||
|
||||
let listing = syscall "ls" ;;
|
||||
Loading…
Add table
Add a link
Reference in a new issue