Remote shell and IDL, [message #15225] |
Mon, 26 April 1999 00:00  |
Lars Hanson
Messages: 1 Registered: April 1999
|
Junior Member |
|
|
I'd like to run IDL remotely in a unix environment doing something
like...
rsh remotehost "export DISPLAY=localhost:0 ; idl"
from localhost.
This works, but unfortunately the 'IDL> '-prompt doesn't pass through
to localhost, which confuses my emacs shell (idl-shell.el).
Any suggestions? Thanks, Lars
------------------
Lars Hanson, DRCMR
|
|
|
|
Re: Remote shell and IDL, [message #15351 is a reply to message #15225] |
Tue, 11 May 1999 00:00  |
David Foster
Messages: 341 Registered: January 1996
|
Senior Member |
|
|
Schwarb Manfred wrote:
>
> hi lars
>
> i don't know a solution with rsh for your problem
>> rsh remotehost "export DISPLAY=localhost:0 ; idl"
>
> but:
> 1) the problem is that rsh does no allocation of a tty.
>
> 2) with secure login it's no problem:
> ssh -t remotehost idl (ssh set your display automatically)
>
> so convince your sysmanagers to install ssh (version 1 not 2, the
> version 2 is very buggy) ...
>
> 3) other possibility:
> run your idl-program on the remotehost via a file:
>
> make a file myprog.test:
> cat > myprog.test <<EOF
> print,"hello"
> xloadct
> wait,3
> exit
> EOF
>
> then run idl by typing
> rsh remotehost "export DISPLAY=localhost:0 ; idl myprog.test"
Hi Lars!
You might be able to have the DISPLAY env variable set appropriately
by using the following, which assumes you are using TCSH shell, which
has the $REMOTEHOST variable:
if ( $?prompt ) then
setenv DISPLAY local-host:0.0
if ( $?REMOTEHOST == 1 ) then
test $?REMOTEHOST && setenv DISPLAY ${REMOTEHOST}:0.0 >&
/dev/null
endif
endif
I put this in a global startup file that gets sourced by everyone's
.cshrc file.
Dave Foster
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
David S. Foster Univ. of California, San Diego
Programmer/Analyst Brain Image Analysis Laboratory
foster@bial1.ucsd.edu Department of Psychiatry
(619) 622-5892 8950 Via La Jolla Drive, Suite 2240
La Jolla, CA 92037
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
|
|
|