|
Mime-Version: |
1.0 |
Sender: |
|
Date: |
Mon, 10 Jun 2002 22:28:22 -0400 |
Reply-To: |
|
Subject: |
|
From: |
|
In-Reply-To: |
|
Content-Type: |
text/plain; charset=us-ascii |
Comments: |
|
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
|
|
|