From: P Purkayastha <ppu...@gmail.com>
Date: Thu, 15 Nov 2012 19:46:01 +0800
Local: Thurs, Nov 15 2012 6:46 am
Subject: Re: Fwd: On saving data when programm is running
I presume you are writing the program, say prog.sage, and running it as
$ sage prog.sage
Am I correct? If so, then you can write your program like this. You can import sys
Then you can run the program in two ways:
Method 1:
Method 2:
$ sage prog.sage &
then instead run it as
$ sage prog.sage <infile.txt > output_file.txt 2>&1 &
The Method 2 is not very convenient though. So, my suggestion would be http://en.wikipedia.org/wiki/GNU_Screen
On 11/15/2012 05:56 PM, Zhibin Liang wrote:
> Dear all,
> I try to send this email to sage-support but I don't have the right to
> ---------- Forwarded message ----------
> Dear All,
> I have a basic problem on running sage.
> When I am running a programme on background, I want to output some data
> For example, I saved the following code as file A
> ########################
> while true:
> It will never stop but I want to see which all p it come at present.
> If we write
> Then there is nothing on file B unitil the end of the programme(but
> I also tried
> ########################
> outfile=file B
> But the new p will cover the old p in file B.
> Can I write some output command to realise my desire?
> Very best wishes
> --
> Very best wishes
> Building 104 Room 103
> --
> Very best wishes
> Building 104 Room 103
> --
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
| ||||||||||||||