Plasma GitLab Archive
Projects Blog Knowledge

Class Netchannels.input_command

class input_command : string -> in_obj_channel
Runs the command with /bin/sh, and reads the data the command prints to stdout.

The method pos_in returns the number of read octets.

When close_in is invoked, the subprocess is waited for. If the process exits with code 0, the method returns normally. Otherwise, the exception Command_failure is raised.

This web site is published by Informatikbüro Gerd Stolpmann
Powered by Caml