From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20615 invoked by alias); 12 Mar 2014 23:26:46 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 18592 Received: (qmail 18445 invoked from network); 12 Mar 2014 23:26:40 -0000 X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED autolearn=ham version=3.3.2 Date: Wed, 12 Mar 2014 19:26:37 -0400 From: rj To: zsh-users@zsh.org Subject: can full hostname (instead of IP addr) be reported via 'watch'? Message-ID: <20140312232637.GA12697@panix.com> Mail-Followup-To: zsh-users@zsh.org MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="4Ckj6UjgE2iN1+kY" Content-Disposition: inline X-To-All-My-Friends-In-Domestic-Surveillance: Hi There, Sports Fans! User-Agent: Mutt/1.5.21 (2010-09-15) --4Ckj6UjgE2iN1+kY Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Man zshparam says, under 'watch,' that '%M' is: 'The full hostname of the remote host"; and for '%m', says '... If only the IP address is available or the utmp field contains the name of an X=E2=88=92windows display, the whole= name is printed. Where I'm using 'watch', only the IP address is given in place of '%M'. How would it be possible to have it report the actual host name instead of the IP address? Does it depend on what's in the utmp or wtmp files? --4Ckj6UjgE2iN1+kY Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (NetBSD) iEYEARECAAYFAlMg7S0ACgkQPxfUK/xcc3Bm4gCg7XRb07uvfdFlzisYxcay0tsQ VKoAnRe1L6jSIu/P+PvRT7CjjmlH3OQj =+RUb -----END PGP SIGNATURE----- --4Ckj6UjgE2iN1+kY--