It's too long to fit in the subject.
How can I have a directory with the same name that is actually a different place according to the architecture I'm running? I need this at work because I'm running on a mixed network of Solaris and Linux.
Most executables don't cause a problem:-
Shell scripts work the same on both Solaris and Linux (well, nearly) so they just live in ~/bin which is on my path.
Most executables which are called in the normal way using the PATH are OK too, they can live in a different directory and the PATH can be changed according to architecture. In my case the Solaris ones are in /proj/chris/bin and the Linux ones are in /user/home/chris/bin.
OK, so that leaves the nasties! One example is sendmail, this has to be called with a full path (presumably a security thing). Thus I have in my muttrc file:-
sendmail=/proj/chris/bin/msmtp
which works for Solaris but not for Linux.
So, where can I put the two different versions of msmtp so that I get the riht one? I have root access on the Linux box but not on the Solaris box. Unfortunately /proj/chris/bin is visible on *both* Linux and Solaris so I can't create a Linux /proj/chris/bin.