CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Installation (https://www.cfd-online.com/Forums/openfoam-installation/)
-   -   [OpenFOAM.org] Alias for OpenFOAM-2.4.0 not working in RHEL cluster (https://www.cfd-online.com/Forums/openfoam-installation/228807-alias-openfoam-2-4-0-not-working-rhel-cluster.html)

ChopraAbhi July 15, 2020 22:24

Alias for OpenFOAM-2.4.0 not working in RHEL cluster
 
Hi all,

I have access to OpenFOAM-2.4.0 in an RHEL cluster in form of module. I'm trying to set alias as follows:
Code:

echo "alias of240='source /opt/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc $FOAM_SETTINGS'" >> $HOME/.bashrc
. The line runs but when I type
Code:

of240
it says
Code:

-bash: /opt/OpenFOAM/OpenFOAM-2.4.0/etc/bashrc: No such file or directory
. Can someone please help me? Thank you!


All times are GMT -4. The time now is 05:28.