zlacker

[parent] [thread] 0 comments
1. chalst+(OP)[view] [source] 2013-06-26 13:54:09
You could create a script /usr/bin/dispatch that contains

    #!/bin/sh
    file=`env PATH=$THIS_ARCHITECURES_PREFERRED_PATH /usr/bin/which $1`
    shift; exit "$file" "$@"
for each machine to use in your scripts. Tuning the path becomes a once per architecture, rather than once per script, task.
[go to top]