Up | Next | Prev | PrevTail | Tail |
Pipes are known to almost all the operating systems where PSL is implemented for. It usually comes in two flavours, named pipes and anonymous pipes. PSL uses the anonymous pipes for unidirectional communication. One standard operation is the connection to the Gnuplot graphics system from the REDUCE computer algebra system. In the following we describe the pipes operation in PSL under Unix and Windows.
The pipe interface can be made available by loading the module pipes.
The Unix system tries to create the process defined by CMD using the usual Unix mechanisms like pathes etc. Depending on the MODE either the stdin or the stdout is connected to the PSL program during the evaluation. The resulting LISP I/O file is returned such that in subsequent read or write operation to this file the command input or output is used. MODE needs to be either input or output.A pipe can be used as a normal LISP file. A close operation on the file will terminate the process. If the user wants to keep the process alive, instead of close the following function has to be used:
Examples:
The pipe interface can be made available by loading the module pipes.
The pipe interface can be made available by loading the module w-pipes.
Up | Next | Prev | PrevTail | Front |