comp.lang.idl-pvwave archive
Messages from Usenet group comp.lang.idl-pvwave, compiled by Paulo Penteado

Home » Public Forums » archive » Remote shell and IDL,
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Switch to threaded view of this topic Create a new topic Submit Reply
Remote shell and IDL, [message #15225] Mon, 26 April 1999 00:00 Go to next message
Lars Hanson is currently offline  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 #15323 is a reply to message #15225] Fri, 30 April 1999 00:00 Go to previous messageGo to next message
Schwarb Manfred is currently offline  Schwarb Manfred
Messages: 1
Registered: April 1999
Junior Member
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"

i hope this helps you a little bit

manfred
Re: Remote shell and IDL, [message #15351 is a reply to message #15225] Tue, 11 May 1999 00:00 Go to previous message
David Foster is currently offline  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
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: Format strings with comma separated lists
Next Topic: IDL 5.0.2 with windows 98

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ] [ PDF ]

Current Time: Wed Oct 08 13:41:51 PDT 2025

Total time taken to generate the page: 0.00448 seconds