View Source prx_drv (prx v0.16.4)

Link to this section Summary

Functions

Make a synchronous call into the port driver.

Send standard input to process.

Link to this section Functions

Link to this function

call(PrxDrv, Pipeline, Call, Argv)

View Source
-spec call(pid(), [prx:pid_t()], atom(), list()) -> any().

Make a synchronous call into the port driver.

The list of available calls and their arguments can be found here:

https://github.com/msantos/alcove#alcove-1

For example, to directly call alcove:execve/5:

  call(Drv, Pipeline, execve,
   ["/bin/ls", ["/bin/ls", "-al"], ["HOME=/home/foo"]])
Link to this function

stdin(PrxDrv, Pipeline, Buf)

View Source
-spec stdin(pid(), [prx:pid_t()], iodata()) -> ok.
Send standard input to process.
-spec stop(pid()) -> ok.