Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
can full hostname (instead of IP addr) be reported via 'watch'?
- X-seq: zsh-users 18592
- From: rj <rj@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: can full hostname (instead of IP addr) be reported via 'watch'?
- Date: Wed, 12 Mar 2014 19:26:37 -0400
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mail-followup-to: zsh-users@xxxxxxx
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
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−windows 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?
Attachment:
pgpCjdoxTVvyo.pgp
Description: PGP signature
Messages sorted by:
Reverse Date,
Date,
Thread,
Author