Re: Writing on X without X device (!) [message #14538] |
Tue, 09 March 1999 00:00  |
Martin Schultz
Messages: 515 Registered: August 1997
|
Senior Member |
|
|
Liam Gumley wrote:
>
> [...]
> To create IDL graphics on a Unix box without being logged in, you need
> two things.
>
> The first is a Unix shell script (which is run in batch mode) which
> invokes IDL. It should look like this:
> [...]>
> The second is an IDL script which does the processing. Note that this is
> a *NOT* a procedure or a function; it has no PRO, FUNCTION, or END
> statements. Here's an example:
>
... but you can call your pros and funs as usual (as long as you make
sure to have the !PATH variable set correctly). Here's an example shell
script that I use to iterate model results:
(1) shell script:
#!/bin/csh
# shell script for remote IDL calls
# called as ridl <programname>
# program must be "main", i.e. no pro or function statement
echo shell script for remote IDL calls
# set environment variables
setenv IDL_DIR /usr/local/lib/rsi/idl_5.1
setenv IDL_PATH \+$IDL_DIR/lib:\+$IDL_DIR/examples
setenv IDL_DEVICE null
setenv IDL_STARTUP ~mgs/IDL/idl_startup.pro
alias idl $IDL_DIR/bin/idl
alias idltool $IDL_DIR/bin/idltool
alias idlhelp $IDL_DIR/bin/idlhelp
alias idldemo $IDL_DIR/bin/idldemo
# call IDL with all parameters
cd IDL/chem1d
echo starting IDL ...
idl $*
--
------------------------------------------------------------ -------
Dr. Martin Schultz
Department for Engineering&Applied Sciences, Harvard University
109 Pierce Hall, 29 Oxford St., Cambridge, MA-02138, USA
phone: (617)-496-8318
fax : (617)-495-4551
e-mail: mgs@io.harvard.edu
Internet-homepage: http://www-as.harvard.edu/people/staff/mgs/
------------------------------------------------------------ -------
|
|
|