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.
On Fri, Mar 16, 2007 at 04:39:44PM +0000, Eur Ing Chris Green wrote:
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.
Put something in an rc script that uses uname -s to add /proj/chris/linux/bin or /proj/chris/solaris/bin to the $PATH as appropriate.
Adam
Or use an alias for sendmail to /proj/chris/bin/msmtp in your .profile or .bash_profile.
If you want it for all users put it into /etc/default/ one.
Regards Keith
________________________________
From: main-bounces@lists.alug.org.uk on behalf of Adam Bower Sent: Fri 16/03/2007 5:18 PM To: main@lists.alug.org.uk Subject: Re: [ALUG] Can anyone suggest any neat ways to do this.......
On Fri, Mar 16, 2007 at 04:39:44PM +0000, Eur Ing Chris Green wrote:
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.
Put something in an rc script that uses uname -s to add /proj/chris/linux/bin or /proj/chris/solaris/bin to the $PATH as appropriate.
Adam -- jabberid = quinophex@jabber.earth.li
_______________________________________________ main@lists.alug.org.uk http://www.alug.org.uk/ http://lists.alug.org.uk/mailman/listinfo/main Unsubscribe? See message headers or the web site above!
On Sun, Mar 18, 2007 at 10:27:48AM -0000, keith.jamieson@bt.com wrote:
Or use an alias for sendmail to /proj/chris/bin/msmtp in your .profile or .bash_profile.
If you want it for all users put it into /etc/default/ one.
That won't work I don't think as the alias won't be effective in mutt, but I'll try it anyway.