I've created a startup script /local-bins/start-sage
to start Sage, which has in it: #!/usr/bin/env bash /homes/sageserv/sage-4.3/sage -notebook address='' accounts=True server_pool=['sa...@localhost'] If I try to start Sage from that script, so the server starts on port 8000, but it is log logging in correctly as user 'sage1' . Note the line shown in sage: notebook(address=r'''''',accounts=True,server_pool=r'''[sa...@localhost]''') bears little resemblence to what is in the startup script. Out of the 3 variables passed, only the 'accounts=True' looks right. Both 'address' and 'server_pool' look rather strange. The server starts, but can't actually compute anything. You can see below an error generated by the ssh command - clearly it is being sent something it does not understand. If instead I start the Sage manually, without a script, and type the same type at the sage prompt, so the server works fine, and things can be computed. Any ideas what might be wrong? Is sed/awk or similar tools used in some way to parse the startup script, using GNU-specific options? At the minute, the only way I can run the sage server is to log in manually and start Sage. Clearly that wont survive a reboot Dave -bash-3.00$ /local-bins/start-sage ---------------------------------------------------------------------- | Sage Version 4.3-patched-for-Solaris(SPARC), Built 2009-12-26 | | Type notebook() for the GUI, and license() for information. | ---------------------------------------------------------------------- Please wait while the Sage Notebook server starts... ... notebook(address=r'''''',accounts=True,server_pool=r'''[sa...@localhost]''') ********************************************************************** WARNING: Running the notebook insecurely not on localhost is dangerous because its possible for people to sniff passwords and gain access to your account. Make sure you know what you are doing. ********************************************************************** The notebook files are stored in: sage_notebook.sagenb ********************************************************************** WARNING: Insecure notebook server listening on external address. Unless you are running this via ssh port forwarding, you are **crazy**! You should run the notebook with the option secure=True. ********************************************************************** ************************************************** * * * Open your web browser to http://localhost:8000 * * * ************************************************** 2009-12-26 21:30:29-0800 [-] Log opened. 2009-12-26 21:30:29-0800 [-] twistd 8.2.0 (/homes/sageserv/sage-4.3/local/bin/python 2.6.2) starting up. 2009-12-26 21:30:29-0800 [-] reactor class: twisted.internet.selectreactor.SelectReactor. 2009-12-26 21:30:29-0800 [-] twisted.web2.channel.http.HTTPFactory starting on 8000 2009-12-26 21:30:29-0800 [-] Starting factory <twisted.web2.channel.http.HTTPFactory instance at 0x378a940> /homes/sageserv/sage-4.3/local/bin/sage-native-execute: xdg-open: not found 2009-12-26 21:30:48-0800 [HTTPChannel,0,213.78.42.15] User 'davek' logged in. 2009-12-26 21:30:56-0800 [HTTPChannel,1,213.78.42.15] got EOF subprocess must have crashed... 2009-12-26 21:30:56-0800 [HTTPChannel,1,213.78.42.15] Usage: ssh [options] host [command] 2009-12-26 21:30:56-0800 [HTTPChannel,1,213.78.42.15] Options: 2009-12-26 21:30:56-0800 [HTTPChannel,1,213.78.42.15] -l user Log in using this user name. 2009-12-26 21:30:56-0800 [HTTPChannel,1,213.78.42.15] -n Redirect input from /dev/null. 2009-12-26 21:30:56-0800 [HTTPChannel,1,213.78.42.15] -F config Config file (default: ~/.ssh/config). 2009-12-26 21:30:56-0800 [HTTPChannel,1,213.78.42.15] -A Enable authentication agent forwarding. -- To post to this group, send an email to sage-devel@googlegroups.com To unsubscribe from this group, send an email to sage-devel+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/sage-devel URL: http://www.sagemath.org