Module Adaptor.Ps


module Ps: sig .. end
Adaptor module for the output of ps auxww. Note that the functions in this module require input lines to have Line.seq, which they use to skip the ps header.

val adaptor : ?skip:bool ->
(< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.absent; seq : Line.present; source : 'g;
stat : 'h > ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.present; seq : Line.present; source : 'g;
stat : 'h >)
Adaptor.adaptor
Map the output of ps(1) into Line.Ps. The optional argument ?skip (default true) specifies whether the first line is a ps header and should be skipped.
val fitting : ?skip:bool ->
(< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.absent; seq : Line.present; source : 'g;
stat : 'h > ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.present; seq : Line.present; source : 'g;
stat : 'h >)
Adaptor.fitting_adaptor
Fitting for parsing ps(1) output.
val reader : Reader.t
Read ps(1) output lines.
val splitter : ?skip:bool ->
(< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.absent; seq : Line.present; source : 'g;
stat : 'h > ->
< delim : 'a; fstab : 'b; group : 'c; key_value : 'd; mailcap : 'e;
passwd : 'f; ps : Line.present; seq : Line.present; source : 'g;
stat : 'h >)
Adaptor.splitter
Split a ps record into Line.Ps.