I am using sage 5.9. When I use program1.sage below written with nohup like:

nohup /opt/sage5.9/sage <program1.sage &

it doesn't write nothing I want in the file program1.out. But program2.sage 
writes what I want in program2.out. It seems that nohup with for loop and 
command write don't work together like for example in program1.sage, but 
without the for loop it works fine like in the program2.sage.
==========
program1.sage
==========
f=open('/home/petrat/program1.out','a')
i=1
for i in [1..10]:
        f.write(str(i))
f.close()
==========
program2.sage
==========
f=open('/home/petrat/program2.out','a')
f.write('working')
f.close()

-- 
You received this message because you are subscribed to the Google Groups 
"sage-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to sage-support+unsubscr...@googlegroups.com.
To post to this group, send email to sage-support@googlegroups.com.
Visit this group at http://groups.google.com/group/sage-support.
For more options, visit https://groups.google.com/d/optout.

Reply via email to