Module prx_drv

Copyright © 2015-2020 Michael Santos <michael.santos@gmail.com>

Behaviours: gen_server.

Function Index

call/4Make a synchronous call into the port driver.
stdin/3Send standard input to process.
stop/1

Function Details

call/4

call(PrxDrv::pid(), Chain::[prx:pid_t()], Call::atom(), Argv::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, ForkChain, execve,
   ["/bin/ls", ["/bin/ls", "-al"], ["HOME=/home/foo"]])

stdin/3

stdin(PrxDrv::pid(), Chain::[prx:pid_t()], Buf::iodata()) -> ok

Send standard input to process.

stop/1

stop(PrxDrv::pid()) -> ok


Generated by EDoc