Top
Back: Ssi tcp links
Forward: DBM links
FastBack: Ssi links
FastForward: list
Up: link
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

4.7.7 Pipe links

Pipe links provide acces 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 conneting 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);
==> Tue Oct 19 09:46:28 CEST 2010
  l;
==> // type : pipe
==> // mode : 
==> // name : date
==> // open : yes
==> // read : not ready
==> // write: ready
  close(l);


Top Back: Ssi tcp links Forward: DBM links FastBack: Ssi links FastForward: list Up: link Top: Singular Manual Contents: Table of Contents Index: Index About: About this document
            User manual for Singular version 3-1-2, Oct 2010, generated by texi2html.