#!/bin/bash # Check for the default IDL startup file. Define IDL_STARTUP if [ -f $SMEI/pro/idl_startup.pro ]; then export IDL_STARTUP=$SMEI/pro/idl_startup.pro fi if [ "$USER" == "$SMEI_ACCOUNT" ]; then export FTP_ANON=$HOME/ftp fi # Make sure that IDL is available #if [ -d /data/software/exelis ]; then # idl_root=/data/software/exelis #elif [ -d /zshare/rsi ]; then if [ -d /zshare/rsi ]; then idl_root=/zshare/rsi else idl_root=/home/$SMEI_ACCOUNT/rsi fi if [ -d $idl_root ]; then IDL_DIR=$idl_root/idl if [ -n "$IDL_VERSION" ]; then IDL_DIR="$IDL_DIR""$IDL_VERSION" rm -f $HOME/bin/idl fi export IDL_DIR #if [ "$HOSTNAME" == "ips.ucsd.edu" ]; then # if [ "$(ps -ef | grep idl_lmgrd | grep $HOSTNAME)" == "" ]; then # $IDL_DIR/bin/lmgrd -c $IDL_DIR/../license/license_ips.dat > $TUB/catch.txt 2> $TUB/catch.txt # fi #fi if [ "$HOME" != "/" ]; then if [ -z "$(which idl 2> /dev/null)" ]; then for i in idl idlde idlhelp idlman ; do rm -f $HOME/bin/$i #ln -s $IDL_DIR/bin/$i $HOME/bin/$i done fi fi fi