### 4.10.6 Pipe links

Pipe links provide access to stdin and stdout of any program. Pipe links are bidirectional. Syntax: `"|: "` + string_for_system

The string_for system will be passed to `system` after connecting the input and output to the corresponding stdout and stdin.

Example:

      link l="|: date";
      open(l); l;
    ==> // type : pipe
    ==> // mode :
    ==> // name : date
    ==> // open : yes
    ==> // read : not ready
    ==> // write: ready
      read(l);
    ==> Sat Nov  8 02:37:15 PM UTC 2025
      l;
    ==> // type : pipe
    ==> // mode :
    ==> // name : date
    ==> // open : yes
    ==> // read : not ready
    ==> // write: ready
      close(l);

User manual for Singular version 4.4.1, 2025, generated by texi2html.