I'm having an issue with cleartool commands called from my .tcshrc. I try to call cleartool setview, but get a cleartool: Command not found error. however, when I call the command from the terminal, I don't get this issue. My default shell is set to tcsh, and I have csh, sh, tcsh all present in my /bin dir. What could be causing this issue?
My $PATH when output from the init script is as follows:
/usr/lib64/qt-3.3/bin:/usr/share/centrifydc/bin:/usr/local/bin:/bin:/usr/bin:/opt/dell/srvadmin/bin
The path when echo'd from the terminal is significantly longer; I can't show the whole thing because it's on a corporate system but it does contain /opt/rational/clearcase/bin, so I believe this is the problem but I don't know how to get the script to recognise the longer path.
The script works if I add a line to my script to add /opt/rational/clearcase/bin to $PATH, but I'd like to be able to permanently add this to my shell path.
cleartool setviewin your.cshrcplease addecho "$PATH". Repeat this in the shell when the command works for you. Report both in your question. I expect that the$PATHhas not been fully set at the point you try to use the command in your initialisation script$PATH?