base.Channel.openPipe

Opening a pipe channel to a sub-process.

Syntax

openPipe(
   cmd STRING,
   mode STRING )
  1. cmd is the system command to be executed.
  2. mode is the open mode, see usage for details.

Usage

With the openPipe() method, you can read from the standard output of a subprocess, write to the standard input, or both.

The opening mode can be one of the following:

If the opening mode is not one of the above letters, the method will raise error -8085.

The method raises error -8084 if the channel cannot be opened.

CALL ch.openPipe( "ls", "r" )