A sample script for setting up and starting XRAY is provided below.
Create a sub-directory within your system image directory to hold the script. For example, if your system image is called chorus.RAM, the directory would be image/RAM/chorus/bin.
Remember to modify the line which initializes the XRAY_INSTALL_DIR environment variable to point to the directory where XRAY is installed. This directory also contains the bin, docs, docschxx, license, master, xraycore and xrayrdb sub-directories. The script assumes you have put the license.dat file into this directory.
This shell script works if you use either a time-limited licence for XRAY, or a license locked to your machine. Please refer to the XRAY documentation for details of the other options available.
#!/bin/sh set +x XRAY_INSTALL_DIR=<xray_install_dir> # Clean up possible crash /bin/rm -f core /tmp/.MasterMsg/.MasterSock.$DISPLAY* # Prepare environment variables XRAYMASTER=$XRAY_INSTALL_DIR/master export XRAYMASTER USR_MRI=$XRAY_INSTALL_DIR export USR_MRI LD_LIBRARY_PATH=$XRAYMASTER/lib export LD_LIBRARY_PATH # LM_LICENSE_FILE=$XRAY_INSTALL_DIR/license.dat LM_LICENSE_FILE=/Work/build/mir/mri/mri/license.dat export LM_LICENSE_FILE # If you use a license server, the following line starts it # ./mri/bin/lmgrd # Then we change the LM_LICENSE_FILE variable to point to the server # LM_LICENSE_FILE=port_number@machine_name # Run XRAY itself $XRAY_INSTALL_DIR/master/bin/xray -VABS=rdb $* # ./mri/master/bin/xray $*