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

Home » Public Forums » archive » Re: IDL without X on Linux
Show: Today's Messages :: Show Polls :: Message Navigator
E-mail to friend 
Return to the default flat view Create a new topic Submit Reply
Re: IDL without X on Linux [message #42986 is a reply to message #42876] Fri, 04 March 2005 06:30 Go to previous message
Ken Mankoff is currently offline  Ken Mankoff
Messages: 158
Registered: February 2000
Senior Member
On Thu, 3 Mar 2005, Benjamin Hornberger wrote:
> That helped! Actually, I realized it was enough to take the device
> commands out of the startup file. Now I only need a way to start
> with different startup files. I guess I'll have to use bash
> scripts for that...

You can leave the device commands in the file and skip the bash,
doing it all in IDL. Here is the system I use.

1) I have my IDL_STARTUP env. var. pointing to idl.pro
2) I made a file link: % ln -s idl.pro idl_noX.pro
3) I have a bash alias: alias idl_noX='export IDL_STARTUP="idl_noX.pro"'
4) When I need to run without X, I type "idl_noX" at the CLI

Finally idl.pro (which is *also* idl_noX.pro) contains this:

env = GETENV( "IDL_STARTUP" )
IF ( STREGEX( env, 'noX', /BOOLEAN ) ) THEN x = 0 ELSE x = 1
IF x THEN device, true = 24
IF x THEN device, decomposed = 0
IF x THEN device, retain = 2
delvar, env, x

-k.

--
http://spacebit.dyndns.org/
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: surface fittin
Next Topic: Re: String Processing Question

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

Current Time: Fri Oct 10 13:37:14 PDT 2025

Total time taken to generate the page: 1.27259 seconds