Home Online Manual
Back: modulo
Forward: monomial
FastBack: Functions and system variables
FastForward: Control structures
Up: Functions
Top: Singular Manual
Contents: Table of Contents
Index: Index
About: About this document

5.1.93 monitor

monitor ( link_expression )
monitor ( link_expression, string_expression )
controls the recording of all user input and/or program output into a file. The second argument describes what to log: "i" means input, "o" means output, "io" for both.
The default for the second argument is "i".
Each monitor command closes a previous monitor file and opens the file given by the first string expression.
monitor ("") turns off recording.
  monitor("doe.tmp","io"); // log input and output to doe.tmp
  ring r;
  poly f=x+y+z;
  int i=7;
  ideal I=f,x,y;
  monitor("");             // stop logging:
  // doe.tmp contains now all input and output from the example above
See link expressions.