module Sys_utils: Sys_utilsval get_editor : unit -> string optionval get_editor_exn : unit -> stringval get_pager : unit -> string optionget_editor, defaulting to a list including less and more.val page_contents : ?pager:string ->
?pager_options:string list -> ?tmp_name:string -> string -> unitpage_contents ?pager ?tmp_name str will show str in a pager. The optional
tmp_name parameter gives the temporary file prefix. The temporary file is removed
after running.val pid_alive : Core.Std.Pid.t -> boolval get_groups : string -> string listval with_tmp : pre:string -> suf:string -> (string -> 'a) -> 'awith_tmp pre suf f creates a temp file, calls f with the file name, and removes the
file afterwards.val diff : ?options:string list -> string -> string -> stringdiff s1 s2 returns diff (1) output of the two strings. Identical files returns the
empty string. The default value of options is "-d -u", to provide shorter, unified
diffs.val ip_of_name : string -> stringip_of_name hostname looks up the hostname and prints the IP in dotted-quad
format.val getbyname_ip : unit -> stringgetbyname_ip () returns the IP of the current host by resolving the hostname.val ifconfig_ips : unit -> Core.String.Set.tifconfig_ips () returns IPs of all active interfaces on the host by parsing ifconfig
output. Note that this will include 127.0.0.1, assuming lo is up.val checked_edit : ?create:bool -> check:(string -> string option) -> string -> [ `Abort | `Ok ]checked_edit ~check file
Edit a file in safe way, like vipw(8). Launches your default editor on
file and uses check to check its content.
Returns `Ok or `Abort. If `Abort is returned the files was not modified
(or created).
create : create the file if it doesn't exists. Default truecheck : a function returning a text representing the error in the file.module Sexp_checked_edit:
module Cpu_use:sig..end
module Lsb_release:sig..end