[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Getting hostname

On Sun, May 04, 2003 at 07:34:48PM +0200, Holger Kubiak wrote:
| a) Can I get the hostname in my shell script another way (this could be a
| question for this list)?

Have you tried using dig?  Something like
	dig +short -x
should do the trick without needing any grep or awk to parse it.


Reply to: