<rgrinberg>
let rec every m f = f () >>= fun _ -> Lwt_unix.sleep m >>= fun () -> every m f
<rgrinberg>
something like that?
btbytes has quit [Client Quit]
kushal has joined #ocaml
zRecursive has left #ocaml ["ERC (IRC client for Emacs 24.5.1)"]
pierpa has quit [Ping timeout: 260 seconds]
sdothum has quit [Quit: ZNC - 1.6.0 - http://znc.in]
kushal has quit [Ping timeout: 246 seconds]
seangrove has quit [Ping timeout: 250 seconds]
circ-user-vkmXT_ has quit [Remote host closed the connection]
MercurialAlchemi has joined #ocaml
kushal has joined #ocaml
SomeDamnBody has quit [Remote host closed the connection]
jonasen has joined #ocaml
kushal has quit [Ping timeout: 260 seconds]
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
sh0t has quit [Remote host closed the connection]
tane has joined #ocaml
rgrinberg has quit [Ping timeout: 246 seconds]
yunxing_ has joined #ocaml
tane has quit [Ping timeout: 258 seconds]
yunxing_ has quit [Read error: Connection reset by peer]
yunxing_ has joined #ocaml
jonasen has joined #ocaml
Mercuria1Alchemi has joined #ocaml
tane has joined #ocaml
atbagautdinov has joined #ocaml
uriznik has joined #ocaml
sepp2k has joined #ocaml
tmtwd has joined #ocaml
kolko has joined #ocaml
atbagautdinov has quit [Quit: atbagautdinov]
f[x] has joined #ocaml
tane has quit [Quit: Verlassend]
dexterph has joined #ocaml
FreeBirdLjj has joined #ocaml
yunxing_ has quit [Ping timeout: 250 seconds]
p_nathan has quit [Ping timeout: 276 seconds]
sepp2k has quit [Quit: Leaving.]
A1977494 has joined #ocaml
tmtwd has quit [Ping timeout: 276 seconds]
Simn has joined #ocaml
danieli has quit [Changing host]
danieli has joined #ocaml
tane has joined #ocaml
dhil has joined #ocaml
AltGr has joined #ocaml
rand__ has joined #ocaml
AltGr has left #ocaml [#ocaml]
atbagautdinov has joined #ocaml
tmtwd has joined #ocaml
ia0 has quit [Quit: reboot]
ia0 has joined #ocaml
jonasen has quit [Ping timeout: 272 seconds]
AltGr has joined #ocaml
jontyy has joined #ocaml
Sorella has quit [Quit: Connection closed for inactivity]
dexterph has quit [Ping timeout: 240 seconds]
sepp2k has joined #ocaml
jonasen has joined #ocaml
f[x] has quit [Ping timeout: 264 seconds]
larhat has joined #ocaml
<flux>
and then add precise period, then ability to cancel, handling exceptions.. :)
tmtwd has quit [Ping timeout: 258 seconds]
adelbertc has quit [Quit: Connection closed for inactivity]
dexterph has joined #ocaml
tane has quit [Quit: Verlassend]
sepp2k has quit [Quit: Leaving.]
sepp2k has joined #ocaml
yomimono has joined #ocaml
manizzle has quit [Ping timeout: 244 seconds]
manizzle has joined #ocaml
Intensity has quit [Remote host closed the connection]
nojb has joined #ocaml
nojb has quit [Quit: nojb]
nojb has joined #ocaml
darkf has quit [Quit: Leaving]
sdothum has joined #ocaml
Kakadu has joined #ocaml
f[x] has joined #ocaml
jontyy has quit [Remote host closed the connection]
saruta has quit [Ping timeout: 244 seconds]
uriznik has quit [Quit: Leaving.]
saruta has joined #ocaml
rgrinberg has joined #ocaml
Cypi has quit []
rossberg has quit [Remote host closed the connection]
deavidsedice has quit [Remote host closed the connection]
yomimono has quit [Ping timeout: 244 seconds]
larhat has quit [Read error: Connection reset by peer]
larhat1 has joined #ocaml
SpiceGuid has joined #ocaml
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
kushal has joined #ocaml
Cypi has joined #ocaml
yomimono has joined #ocaml
TheVoid has quit [Ping timeout: 260 seconds]
TheVoid has joined #ocaml
rossberg has joined #ocaml
al-damiri has joined #ocaml
Mercuria1Alchemi has quit [Ping timeout: 276 seconds]
sh0t has joined #ocaml
jonasen has joined #ocaml
leyyin has joined #ocaml
hbar_ has quit [Ping timeout: 246 seconds]
larhat has joined #ocaml
larhat1 has quit [Read error: Connection reset by peer]
hbar_ has joined #ocaml
dexterph has quit [Ping timeout: 260 seconds]
rand__ has quit [Quit: leaving]
labs has joined #ocaml
<labs>
Hey folks
<labs>
How should I usually fix error like `Unbound module Ocamlbuild_plugin`
<labs>
Which opam package should I install?
<Khady>
it is supposed to come with ocamlbuild IIRC
<labs>
Installing ocmalfind did help
octachron has joined #ocaml
A1977494 has quit [Quit: Leaving.]
<octachron>
labs, does this happen with a "myocamlbuild.ml" file?
slash^ has joined #ocaml
BitPuffin has joined #ocaml
seangrove has joined #ocaml
shinnya has joined #ocaml
<seangrove>
I'm having a tough time getting Unix.create_process to pass args in the way I'd like
<seangrove>
In bash, I'd do: `./Chromium --proxy-server="socks5://myproxy:8080" --proxy-bypass-list="*.google.com;*foo.com;127.0.0.1:8080"`
<seangrove>
(cleaning up the OCaml invocation for comparison)
<seangrove>
So `Unix.create_process browser_location [|""; (Printf.sprintf "--proxy-server=%s" proxy); url |] Unix.stdin Unix.stdout Unix.stderr` works, but this does not:
<seangrove>
I've noticed that with other processes I've tried to launch - it seems like args aren't properly recognized unless there's an empty string as the first entry in the array
<Drup>
pretty sure the first args is always the command name
<Drup>
so arg parsing starts at index 1, not index 0
<seangrove>
Drup: That's a bit confusing for me though, since the browser_location is the path to the binary. Can that and the command name differ?
<def`>
seangrove: man unix(7)
<def`>
(just kidding)
<Drup>
yeah, it's not an OCaml behavior, it's a unix one
<def`>
man exec(3) is the right answer
<def`>
and it is actually a common pattern to dispatch based on the command name (that's how works busybox for instance)
<def`>
(or look at all symbolic links in your $PATH)
<seangrove>
def`: Thanks, I'll read up on it. I'm aware I'm showing some extreme ignorance here, so thanks for the pointer
<def`>
seangrove: busybox provides replacement for shell utils like ls, ln, ...
<def`>
it is usually distributed as a single binary which adapts it's behavior according to the command name
f[x] has quit [Ping timeout: 240 seconds]
<def`>
a bit arbitrary but not absurd.
jeffmo has joined #ocaml
ncthom91 has joined #ocaml
benwbooth has quit [Ping timeout: 250 seconds]
<seangrove>
Kind of interesting though
octachron has quit [Ping timeout: 250 seconds]
benwbooth has joined #ocaml
FreeBirdLjj has quit [Ping timeout: 250 seconds]
benwboot_ has joined #ocaml
FreeBirdLjj has joined #ocaml
A1977494 has joined #ocaml
benwbooth has quit [Ping timeout: 246 seconds]
labs has quit [Quit: Konversation terminated!]
adelbertc has joined #ocaml
Sorella has joined #ocaml
malc_ has joined #ocaml
yunxing_ has joined #ocaml
larhat1 has joined #ocaml
larhat has quit [Read error: Connection reset by peer]
Simn has quit [Read error: Connection reset by peer]
yomimono has quit [Ping timeout: 250 seconds]
AltGr has left #ocaml [#ocaml]
seangrove has quit [Ping timeout: 246 seconds]
loocash has joined #ocaml
malc_ has quit [Quit: ERC (IRC client for Emacs 25.0.50.2)]
yunxing_ has quit [Remote host closed the connection]
kushal has quit [Quit: Leaving]
yunxing_ has joined #ocaml
Intensity has joined #ocaml
struk|work has joined #ocaml
struk|work has quit [Client Quit]
struktured has joined #ocaml
AltGr has joined #ocaml
Kakadu has quit [Quit: Page closed]
AltGr has left #ocaml [#ocaml]
larhat1 has quit [Quit: Leaving.]
Orion3k has quit [Quit: Leaving]
pierpa has joined #ocaml
_y has quit [Ping timeout: 244 seconds]
loocash has quit [Quit: Leaving]
tobiasBora has quit [Ping timeout: 276 seconds]
_y has joined #ocaml
tobiasBora has joined #ocaml
octachron has joined #ocaml
Orion3k has joined #ocaml
th5 has joined #ocaml
seangrove has joined #ocaml
sh0t has quit [Remote host closed the connection]
octachron has quit [Ping timeout: 240 seconds]
SpiceGuid has quit [Quit: ChatZilla 0.9.92 [SeaMonkey 2.40/20160120202951]]
Kakadu has joined #ocaml
two_wheels has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
two_wheels has joined #ocaml
octachron has joined #ocaml
seangrove has quit [Ping timeout: 244 seconds]
groovy2shoes has quit [Remote host closed the connection]
groovy2shoes has joined #ocaml
Algebr has joined #ocaml
FreeBirdLjj has quit [Remote host closed the connection]
darkf has joined #ocaml
sepp2k has quit [Quit: Leaving.]
jeffmo has quit [Quit: jeffmo]
shinnya has quit [Ping timeout: 260 seconds]
BitPuffin has quit [Ping timeout: 260 seconds]
AltGr has joined #ocaml
seangrove has joined #ocaml
AltGr has left #ocaml [#ocaml]
rgrinberg has quit [Ping timeout: 244 seconds]
seangrove has quit [Ping timeout: 240 seconds]
yunxing_ has quit [Remote host closed the connection]
yunxing_ has joined #ocaml
jonasen has quit [Quit: My Mac has gone to sleep. ZZZzzz…]
rgrinberg has joined #ocaml
seangrove has joined #ocaml
jeffmo has joined #ocaml
yunxing_ has quit [Remote host closed the connection]
jeffmo has quit [Client Quit]
matason has joined #ocaml
slash^ has quit [Read error: Connection reset by peer]
Orion3k has quit [Quit: Leaving]
malc_ has joined #ocaml
Orion3k has joined #ocaml
seangrove has quit [Ping timeout: 252 seconds]
f[x] has joined #ocaml
MercurialAlchemi has quit [Ping timeout: 258 seconds]