Mon, 10 Jun 2002 22:28:22 -0400
|
On Mon, 10 Jun 2002 20:15:53 CDT, Al Iverson <[log in to unmask]> said:
> # which smrsh
> /usr/sbin/smrsh
> cd /usr/sbin
> # grep -a smrsh smrsh
> That produces 5-6 lines of output, a few of which contain the path to
> the smrsh dir, something like this:
> command too long: %.40s /etc/smrsh/%s: %s not available for
> sendmail programs
> Telling me that it's /etc/smrsh
Not guaranteed to work. 'strings -a smrsh | grep /' is more likely to DTRT.
The box I'm using right now uses /usr/adm/sm.bin, which would miss on your grep.
Also, many systems have grep commands that don't do well on binaries (thus
the 'strings | grep' pair....)
/Valdis
|
|
|