#!/bin/bash # Check for the default IDL startup file. Define IDL_STARTUP if [ -f $SMEI/pro/idl_startup.pro ]; then IDL_STARTUP=$SMEI/pro/idl_startup.pro export IDL_STARTUP fi if [ "$USER" == "$SMEI_ACCOUNT" ]; then FTP_ANON=$HOME/ftp export FTP_ANON fi # Make sure that IDL is available if [ -d /zshare ]; then zshare=/zshare else zshare=/home/$SMEI_ACCOUNT fi if [ -d $zshare/rsi ]; then IDL_DIR=$zshare/rsi/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