We have a couple dozen programs which were developed in-house.
Some are scripts (most Tcl/Tk, Perl, or sh), most are compiled
C or Fortran, and then there's a handful of oddballs (lisp
We also have a pretty heterogenous set of workstations:
Linux/x86, Solaris/SPARC, Solaris/x86, Tru64/Alpha, AIX/rs6000,
HPUX, Win9x, DOS, NeXT, and even a dying SunOS box or two.
The goal is simple: I'd like a single shared /bin directory
to be the home of all our in-house stuff (performance over
the lan has never been an issue). Right now, I have a /bin
directory that supports four architectures (tru64/alpha,
linux/x86, aix/rs6000, and solaris/sparc).
Scripts aren't really a probelm - I just use the shellbang
hack, which works great as long as the interpreter is in the
user's path (wherever that happens to be on the user's host):
# restart \
and similarly for Perl, etc.
For compiled programs, each program foo is built as
foo.sparc, foo.alpha, foo.x86, foo.rs6000, and then 'foo'
is a symlink to .wrapper, which just calls the correct
binary with whatever arguments it was passed.
This system works well, but:
1. Now that I want to add different operating systems on
the same arch (eg. both linux/x86 and solaris/x86),
just 'foo.arch' is not enough. I could go 'foo.arch.os'
but that is starting to seem clumsy - or is that just my
2. In the case where a program has library/supporting files
that are not arch dependent, they just go in a parallel /lib
or /share directory - but if compiled libraries exist -
should they go in their own arch/os directory hiearchy, or
just all dumped in a flat /lib like the bin directory?
Both choices seem to have advantages and disadvantages -
3. Finally, the really tricky question: Samba can let us share
this unix directory to DOS/Win systems; but of course all of
the .wrapper and shellbang tricks above won't work now.
Is there some neat solution (perhaps Samba pre/post processing)
that will let me run a file /bin/foo.win32 as just 'foo' from Windows,
without disturbing/cluttering anything else in the /bin directory?
Any comments or suggestions from anyone who has set up something
like this are greatly appreciated.
remove x from above to reply, if present