Darwin Help

Back to Index

OpenPipe

Function OpenPipe - execute system command and pipe output to Darwin

Calling Sequence  OpenPipe(cmd)
Parameters
NameTypeDescription

cmd stringa command for the underlying UNIX system
Return Type  NULL
Synopsis OpenPipe will execute the command described by the string cmd and directs its output to be the input for Darwin. This is called opening a pipe in the Unix terminology. This output is readable with ReadRawLine() commands (simply as text) or with ReadLine() commands (when the output is/are valid Darwin commands). When the output is exhausted, the string EOF will be returned by the read commands and the pipe will be closed.
Examples
> OpenPipe(date);

> ReadRawLine();
Thu Oct 12 08:01:39 MET DST 2000
> ReadRawLine();
EOF
See also CallSystem,   FileStat,   inputoutput,   OpenAppending,   OpenReading,   OpenWriting,   ReadLine,   ReadOffsetLine,   ReadRawFile,   ReadRawLine,   SplitLines,   SystemCommand,   TimedCallSystem