The scripts in GENSYS are using an environment variable named $gensys, this variable must point to the directory where the GENSYS programs are installed. So before anything else can be defined in the $HOME/.profile_gensys-file the user must add the following line in $HOME/.profile_gensys-file:
# export gensys=<The complete address to the directory where GENSYS is installed> #
The $PATH variable must be updated with the $gensys/bin directory. In your file $HOME/.profile_gensys please add the following line:
# echo $PATH | grep $gensys/bin > /dev/null || PATH=$PATH:$gensys/bin #
In GENSYS the user has the possibility to define a number of environment variables which controls the behavior of the program. Preferable these variables are defined in file $HOME/.profile_gensys. Below is a list of environment variables which GENSYS uses:
Please copy the following lines to your $HOME/.profile_gensys-file
# # # Defining environment variables for GENSYS # # export gensys=/opt/gensys/gensys. ;# Define the address to program GENSYS export genanalyse=$HOME/gensys/analyse ;# Work directory export gendel=$HOME/gensys/trash ;# Send deleted files here export genhomepage=$HOME/gensys/homepage ;# Users Manual export genverif=$HOME/gensys/verif ;# Gensys verif directory export genkpf=$genverif/kpf/kpfr ;# Directory for common wheel-rail geometry files export gentrc=$genverif/track/ver_data ;# Directory for common track irregularity files echo $PATH | grep $HOME/bin > /dev/null || PATH=$PATH:$HOME/bin ;# Add $HOME/bin to your path echo $PATH | grep $gensys/bin > /dev/null || PATH=$PATH:$gensys/bin ;# Add $gensys/bin to your path # # Set the promter in a xterm-window # if [ "$TERM" = "linux" ]; then export PS1="\[\e[31m\]\u@\H \$? \[\e[0m\]" else export PS1="\[\e]1;\W\a\e]2;\w\a\e[31m\] \$? \[\e[0m\]" fi export PROMPT_DIRTRIM=3
To the scripts in the GENSYS package, many command line options can be given. Values for these options can be stored in a file named gen_conf or .gen_conf. If not a local file can be found, Gensys will look for file $HOME/.gen_conf. If not file $HOME/.gen_conf can be found, Gensys will read file $gensys/bin/gen_conf.
The release number of the GENSYS package is a part of the name of the program, for example: gensys.. The reason for doing so is that several releases of GENSYS can be installed simultaneously. This open up the possibility for different users to run different releases of Gensys in the same computer cluster.