Home    Search    Reference Manuals    Return   




Initialization of GENSYS




Search Path

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
#                                                                                   

Environment variables

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:

gendir
Variable $gendir controls if Gensys output data files shall be stored in subdirectories or not. If $gendir is undefined all output data files will be written in current directory, i.e. project level. If $gendir equals "yes" the output data files will be written in subdirectories.
To which subdirectories the files will be moved depends on the file extension. The names of the subdirectories are defined in the file $gensys/bin/gen_defs. If the user wish to use other names of the subdirectories it is possible to create a local .gen_defs-file. The local file .gen_defs has a higher priority than $gensys/bin/gen_defs.

genedit
In environment variable $genedit the user can choose his/hers favorite editor. If variable $genedit is undefined, editor Nedit will be used.

genhtml
Environment variable $genhtml controls which web-browser shall be used when reading the GENSYS manual pages. If variable $genhtml is undefined GENSYS will search for the following web-browsers:
firefox, konqueror, mozilla, netscape

genkpf
Environment variable $genkpf shall point to the directory where common wheel-rail geometry functions are saved.

gentrc
Environment variable $gentrc shall point to the directory where common track files are saved.

LPDEST
Defining the name of the default printer. On some systems variable $PRINTER is used.


Example of a $HOME/.profile_gensys-file.

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
                                                                                                                



Pre defined options for the programs in GENSYS

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.


Release numbers

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.