art3mis Posted November 1, 2018 Share Posted November 1, 2018 (edited) Hi Trying to create an alias in the command line using the following Quote alias houdini_run='pathold=$PATH; PATH=/home/jim/yt-conda/bin:/home/jim/yt-conda/sbin:/opt/hfs17.0.352:/opt/hfs17.0.352/bin:/usr/bin:/usr/sbin/;/opt/hfs17.0.352:/opt/hfs17.0.352/bin/houdini-bin; PATH=$pathold' Then when I enter 'houdini_run' I get the following error Quote bash: /opt/hfs17.0.352:/opt/hfs17.0.352/bin/houdini-bin: No such file or directory However, if I navigate to the bin directory, and simply enter houdini-bin, I still get the 'No such file' error but the application correctly launches. Can anyone tell me what is going on here? Edited November 1, 2018 by art3mis Quote Link to comment Share on other sites More sharing options...
fsimerey Posted November 1, 2018 Share Posted November 1, 2018 You must source houdini_setup, then launch houdini. houdini_run () { MAJ=17.0 MIN=352 # edit these to suit your environment HOUDINI_ROOT="/opt/hfs${MAJ}.${MIN}" cd ${HOUDINI_ROOT} source houdini_setup # launch houdini houdini $@ } Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.