On Fri, Jun 05, 2009 at 03:30:55PM -0400, Rob Foehl wrote:
> Surprisingly enough, which isn't a standard utility -- and it's not
> installed by default in the "minimal" package sets on several platforms,
> mostly Linux variants. (Yes, this is annoying.)
>
> /usr/bin/env is probably the safest bet here. Isn't portability fun?
"type" is a built-in in POSIX shells, and even the pre-historic SunOS
/bin/sh has a "type" built-in, be it a bare-bones version that does not
support the "-p" switch, that is sufficient. So another possibility is:
set -- `type find`
shift `expr $# - 1`
# Now, $1 is the full path of "find".
# ...
This said, the `postconf -h queue_directory` solution is likely simplest
for now.
--
Viktor.
Disclaimer: off-list followups get on-list replies or get ignored.
Please do not ignore the "Reply-To" header.
To unsubscribe from the postfix-users list, visit
http://www.postfix.org/lists.html or click the link below:
<mailto:[email protected]?body=unsubscribe%20postfix-users>
If my response solves your problem, the best way to thank me is to not
send an "it worked, thanks" follow-up. If you must respond, please put
"It worked, thanks" in the "Subject" so I can delete these quickly.