In linux you can set shell variables in many ways, depending on the shell you use (there are many).
You can set it at run time by putting it in front of the command itself, this way:
Code:
FDRHOME=/path/to/fdr2/ ./frd2
If you use bash as your shell, you can also add it on your bash rc file(s) so you don't have to write it every time you can to invoke that command. You can add this line:
Code:
export FDRHOME="/path/to/fdr2"
In either your ~/.bashrc and/or your ~/.bash_profile files. After that you need to restart your shell. The easiest would be this:
That will close the current shell and substitute it with a new one. Then you can do this to check that the variable has been correctly set:
It should echo the path you've set. Remember to substitute the example path I posted by the real one.