The sage prompt is *not* a bash (or shell) prompt! It is an ipython
prompt. If you want the output dumped to a file, then you need to run
the asd.sage file like this:
$ sage asd.sage > output.txt
On 11/21/2012 12:57 PM, Александр Шевченко wrote:
I have encountered problem using Sage 5.4.
I want output information in file from console. On usually solve of this
problem Sage write. My OS is Ubuntu.
sage: asd.sage > output.txt
---------------------------------------------------------------------------
NameError Traceback (most recent call last)
/home/toivo/sage/<ipython console> in <module>()
NameError: name 'asd' is not defined
sage: asd.sage | tee output.txt
------------------------------------------------------------
File "<ipython console>", line 1
asd.sage | tee output.txt
^
SyntaxError: invalid syntax
I can't directly run file from console. I must use function load.
I hope this information proves useful in correcting the problem.
Best regards,
Aleksandr
--
You received this message because you are subscribed to the Google Groups
"sage-support" group.
To post to this group, send email to sage-support@googlegroups.com.
To unsubscribe from this group, send email to
sage-support+unsubscr...@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support?hl=en.