On Feb 22, 2007, at 13:40 , Timothy Clemans wrote:

>
> When CLTRL-Z is used to exit sage when notebook-server is running, the
> port is not shut down and the PID is not deleted.

I assume you are running on a Unix-like system (i.e., not Windoze,  
about which I remain ignorant).  If so, ^Z does *not* exit the  
process.  It merely suspends it.  You can continue the process in two  
ways:  the command 'fg' brings the process back to the "foreground",  
taking input from your keyboard; and the command 'bg' puts it in the  
background (where it will continue to take input from your keyboard,  
but will fight other processes for it, causing really odd behavior;  
'bg' is typically used to "spin off" processes that will not interact  
directly with the user).

This explains why you see the above behavior.

> When sage-notebook folder is deleted the notebook server can not be
> shut down within SAGE.
>
> Saving notebook to '/home/Timothy/sage_notebook/nb.sobj'...
> [Errno 2] No such file or directory: '/home/Timothy/sage_notebook/ 
> nb.sobj'
> Automatically restarting server.
> Press Control-C *TWICE* to stop the server.

This appears to be a bug (write it up in Trac).  The work-around is  
to suspend the process (^Z, as you did), and then kill it, viz,

   kill -9 %n

where the 'n' is the number you got when you suspended, as in:

===============
Press Control-C *TWICE* to stop the server.
^Z
[3]+  Stopped                 sage

$ kill -9 %3
[3]+  Killed                  sage
===============

Hope that helps.

Justin

--
Justin C. Walker, Curmudgeon-At-Large
Institute for the Enhancement of the Director's Income
--------
When LuteFisk is outlawed,
Only outlaws will have LuteFisk
--------




--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/sage-support
URLs: http://sage.math.washington.edu/sage/ and http://sage.scipy.org/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to