¤ subProcessF

Types

subProcessF :: String -> F String (String  String)

Synopsis

subProcessF cmd

Description

subProcessF allows you to start a subprocesses and communicate with it. The subprocess can execute any shell command, so subProcessF opens up the possibility plug in arbitrary external software in a fudget program.

Input

Strings that will be feed to the process on its stdandard input channel.

Output

Left str when the subprocess puts str in its standard output stream. Right str when the subprocess puts str in its standard error stream.

Arguments

cmd :: String
The shell command that will be executed in the subprocess.

See Also

Stdio communication: stdioF et al.

subProcessF was inspired by the C function popen().