> You can just put a shell script in $SAGE_ROOT/local/bin/math (or
> whatever the binary name is supposed to be) with the contents:
>
> #!/bin/sh
> exec ssh -t [EMAIL PROTECTED] math
> $*

Thanks! After some sweat it worked. The main pain is that I can't
actually ssh directly to the machine running mathematica (speedy-
gonzales) when I am at home, I need to tunnel through yet another
machine (gate). This is the math* script:
#!/bin/sh
ssh -t gate.maths.ox.ac.uk "source .ssh-agent.sh;ssh -t speedy-
gonzales.maths.ox.ac.uk math"

The console, the interface and the interactive modes work (for
mathematica so far). The only thing is that when quitting the
console() it's not clean. SAGE hangs for a while, but reacts after a
few key presses:


sage: mathematica.console()
        Pseudo-terminal will not be allocated because stdin is not a
terminal.
Agent pid
32110
<-------------------------------------------- my ssh-agent is started
Pseudo-terminal will not be allocated because stdin is not a terminal.
Mathematica 5.2 for Linux
Copyright 1988-2005 Wolfram Research, Inc.
 -- Terminal graphics initialized --

In[1]:= Quit

 
<-------------------------------------------- Nothing happens so I
press a few times Enter

---------------------------------------------------------------------------
<type 'exceptions.IOError'>               Traceback (most recent call
last)

/Users/pdehaye/<ipython console> in <module>()

/Library/sage/local/lib/python2.5/site-packages/sage/interfaces/
mathematica.py in console(self, readline)
    393
    394     def console(self, readline=True):
--> 395         mathematica_console(readline=readline)
    396
    397     def trait_names(self):

/Library/sage/local/lib/python2.5/site-packages/sage/interfaces/
mathematica.py in mathematica_console(readline)
    495                 line = raw_input('        ')
    496                 f1.writelines(line+'\n')
--> 497                 f1.flush()
    498             except KeyboardInterrupt:
    499                 f1.close()

<type 'exceptions.IOError'>: [Errno 32] Broken pipe
sage:
sage:
sage:



> You need to setup some sort of password-less authentication from your
> laptop to the mathematica server if you have not already.  There are
> lots of simple ways to do this. Two easy and elementary ways are the
> ControlMaster option or the program ssh-agent, as described in the man
> pages for ssh_config and ssh-agent.
>
> I don't have access to mathematica, but this works for gap, kash, and
> magma.
>
> On Aug 14, 4:48 pm, "[EMAIL PROTECTED]"
>
> <[EMAIL PROTECTED]> wrote:
> > i know about ssh tunneling and so on but i am posting this on sage-
> > support...
> > the point was to have a sage session on my laptop interacting with a
> > remote mathematica (for instance)
> > paul
>
> > On Aug 14, 9:09 pm, Chris Chiasson <[EMAIL PROTECTED]> wrote:
>
> > > you can use mathematica remotely anyway
> > > method 1: remote kernel (don't know if mathplayer can be made to
> > > connect to one of these)
> > > method 2: ssh tunneling, possibly with x windows (this should work,
> > > but you will probably need to learn a lot to make it work)
>
> > > plain method:
> > > ssh and execute
> > > math
> > > to enter a mathematica terminal mode session (sans front end)
>
> > > On Aug 14, 12:40 pm, "[EMAIL PROTECTED]"
>
> > > <[EMAIL PROTECTED]> wrote:
> > > > hi all
> > > > i was wondering if anyone had already implemented this:
> > > > my computing setup is not the greatest. i don't pay for mathematica or
> > > > magma so i don't have them available on my laptop. on the other hand
> > > > my university does pay for them, and i have a user account on the
> > > > machines where they are run. but then those machines don't have a very
> > > > current version of sage...
> > > > so i was curious whether it would be possible to have sage run
> > > > mathematica on a remote server and interact with it just as if it was
> > > > also installed on my machine?
> > > > thanks
> > > > paul


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to sage-support@googlegroups.com
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