The solution is provided by the monitor command.
This command writes a copy of the input (or of the output or of both) into a file (with name specified when calling monitor): for instance the Singular session
Code:
> monitor("prot.txt","o");
> ring r=0,(x,y),dp;
> ideal I=x4, y8+3556x2;
> I;
I[1]=x4
I[2]=y8+3556x2
creates a file prot.txt with the content
Code:
I[1]=x4
I[2]=y8+3556x2
Similarly,
Code:
> monitor("prot2.txt","i");
> ring r=0,(x,y),dp;
> ideal I=x4, y8+3556x2;
> I;
I[1]=x4
I[2]=y8+3556x2
creates a file prot2.txt with the content
Code:
ring r=0,(x,y),dp;
ideal I=x4, y8+3556x2;
I;
The writing to a file is terminated when
Code:
monitor("");
is entered.
See also:
http://www.singular.uni-kl.de/Manual/3-0-0/sing_238.htmChristoph Lossen
(Singular Team)