Zulip Chat Archive
Stream: lean4
Topic: IO.Process.run that passes a String to stdin?
Scott Morrison (Mar 30 2023 at 04:46):
Does anyone have an example on hand of calling an external process and passing something (ideally a String
!) to its stdin?
That is, I'd like something like IO.Process.run
that also takes a string argument to pass to stdin, and return the string obtained from reading stdout.
Scott Morrison (Mar 30 2023 at 06:17):
Kyle pointed me to https://leanprover.zulipchat.com/#narrow/stream/270676-lean4/topic/external.20process/near/345090183, which works perfectly.
Last updated: Dec 20 2023 at 11:08 UTC