LSTSRV-L Archives

LISTSERV Site Administrators' Forum

LSTSRV-L

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Topic: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Valdis Kletnieks <[log in to unmask]>
Mon, 10 Jun 2002 22:28:22 -0400
text/plain (20 lines)
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

ATOM RSS1 RSS2