Find every instance of hostname
Anne Wilson
cannewilson at tiscali.co.uk
Sat Aug 26 11:51:37 UTC 2006
On Saturday 26 August 2006 11:56, Steve Searle wrote:
> Around 07:48am on Saturday, August 26, 2006 (UK time), Anne Wilson scrawled:
> > I have a small problem on my laptop which springs from the sender of an
> > email being set as logwatch.localhost.localdomain.
>
> Do you mean the "from" address os logwatch at localhost.localdomain? In
> which case I am not sure what you want to do is the way to solve it.
>
> > I have so far been unable to find which config file needs editing to
> > get the correct hostname, so I'd like to be able to search this box,
> > where everything is fine, for config files that contain the box's
> > hostname. I could then check the list against the ones on the laptop.
> >
> > It should be simple enough to do using find and grep, but I can't get
> > a command that gives me the output I need. How can I do it?
>
> grep -r /* foo
>
> should do it, where foo is the string you are searching for. Run it as
> root or you won't have access to all files. You will still get some
> error messages from some of the things in /dev, but it should find what
> you are looking for.
>
>
Unfortunately, those error messages seem to be all I'm getting. I directed
the output to a file, but after 20 minutes the file is still empty and the
root console shows only the error messages.
Anne
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/fedora-list/attachments/20060826/9ac353d5/attachment-0001.sig>
More information about the fedora-list
mailing list