Copyright © 2010-2013 ALEPH ARCHIVES Ltd. All rights reserved.
Version: 1.2.2
Authors: Aleph Archives Ltd. [web site: http://aleph-archives.com/].
Erlang External Programs Supervisor.
Framework to extend Erlang supervision to external programs.cmd_params() = [cmd_val() | {string(), cmd_val()}]
cmd_val() = string() | binary() | integer()
port_cmd_opts() = [force | nosuspend]
port_mode() = active | passive
port_ret() = timeout | {data, iodata()} | {exit_status, integer()} | {'EXIT', term()}
proplist() = [{atom(), term()}]
command/2 | Syntactic sugar for port_command/2 call. |
command/3 | Syntactic sugar for port_command/3 call. |
exec_find/1 | Equivalent to exec_find(ProgName, ?MODULE). |
exec_find/2 | Returns the executable pathname by:
|
exec_line/2 | Returns a formatted command line. |
proc_id/1 | Returns the OS process ID for the program under control. |
revision/0 | Returns the current VALEO revision number. |
start_link/3 | Start a named VALEO server and link it the calling process. |
state/1 | Returns the internal state of the program under control. |
stop/1 | Stop the Valeo port program. |
version/0 | Returns the current VALEO version number. |
command(Pid::pid() | atom, IoData::iodata()) -> ok
Syntactic sugar for port_command/2 call.
command(Pid::pid() | atom, IoData::iodata(), Opts::port_cmd_opts()) -> ok
Syntactic sugar for port_command/3 call.
exec_find(ProgName::string()) -> string() | false
Equivalent to exec_find(ProgName, ?MODULE).
exec_find(ProgName::string(), Mod::atom()) -> string() | false
Returns the executable pathname by:
Returns the full pathname, or 'false' otherwise.
Eg.: valeo:exec_find("ssh").exec_line(Cmd::string(), CmdParams::cmd_params()) -> string() | false
Returns a formatted command line. Eg.: valeo:exec_line("ssh", [{"-p", 22}, "foo@10.11.81.3"]).
proc_id(Pid::pid() | atom) -> non_neg_integer() | undefined
Returns the OS process ID for the program under control.
revision() -> string()
Returns the current VALEO revision number.
start_link(Module::atom(), ProgArgs::proplist(), PortArgs::proplist()) -> {ok, pid()}
Start a named VALEO server and link it the calling process.
state(Pid::pid() | atom) -> term() | undefined
Returns the internal state of the program under control.
stop(Pid::pid() | atom) -> ok
Stop the Valeo port program.
version() -> string()
Returns the current VALEO version number.
Generated by EDoc, May 6 2013, 23:03:07.