From owner-freebsd-questions@freebsd.org Tue May 26 14:42:22 2020 Return-Path: Delivered-To: freebsd-questions@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 02D112C90F7 for ; Tue, 26 May 2020 14:42:22 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from smh-06.1blu.de (smh-06.1blu.de [178.254.0.206]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 49WcB46Dz3z4H8F for ; Tue, 26 May 2020 14:42:20 +0000 (UTC) (envelope-from guru@unixarea.de) Received: from [172.16.29.5] (helo=sh4-5.1blu.de) by smh-06.1blu.de with esmtp (Exim 4.86_2) (envelope-from ) id 1jdatE-00033z-4D for freebsd-questions@freebsd.org; Tue, 26 May 2020 16:49:12 +0200 Received: from ftp51246-2575596 by sh4-5.1blu.de with local (Exim 4.90_1) (envelope-from ) id 1jdamX-0008Hv-9c for freebsd-questions@freebsd.org; Tue, 26 May 2020 16:42:17 +0200 Date: Tue, 26 May 2020 16:42:17 +0200 From: Matthias Apitz To: freebsd-questions@freebsd.org Subject: Linux command 'watch' Message-ID: <20200526144217.GB7556@sh4-5.1blu.de> Reply-To: Matthias Apitz Mail-Followup-To: freebsd-questions@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit X-Operating-System: FreeBSD 12.0-CURRENT r314251 (amd64) X-message-flag: Mails containing HTML will not be read! Please send only plain text. User-Agent: Mutt/1.9.4 (2018-02-28) X-Rspamd-Queue-Id: 49WcB46Dz3z4H8F X-Spamd-Bar: ++ Authentication-Results: mx1.freebsd.org; dkim=none; dmarc=none; spf=none (mx1.freebsd.org: domain of guru@unixarea.de has no SPF policy when checking 178.254.0.206) smtp.mailfrom=guru@unixarea.de X-Spamd-Result: default: False [2.89 / 15.00]; HAS_REPLYTO(0.00)[guru@unixarea.de]; ARC_NA(0.00)[]; REPLYTO_EQ_FROM(0.00)[]; FROM_HAS_DN(0.00)[]; TO_MATCH_ENVRCPT_ALL(0.00)[]; NEURAL_SPAM_SHORT(0.44)[0.443]; MIME_GOOD(-0.10)[text/plain]; TO_DN_NONE(0.00)[]; DMARC_NA(0.00)[unixarea.de]; AUTH_NA(1.00)[]; RCPT_COUNT_ONE(0.00)[1]; RCVD_COUNT_THREE(0.00)[3]; NEURAL_SPAM_MEDIUM(0.73)[0.726]; NEURAL_SPAM_LONG(0.92)[0.916]; R_SPF_NA(0.00)[no SPF record]; FROM_EQ_ENVFROM(0.00)[]; R_DKIM_NA(0.00)[]; MIME_TRACE(0.00)[0:+]; ASN(0.00)[asn:42730, ipnet:178.254.0.0/19, country:DE]; RCVD_TLS_LAST(0.00)[]; RCVD_IN_DNSWL_LOW(-0.10)[178.254.0.206:from] X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 26 May 2020 14:42:22 -0000 Hello, On my Ubuntu mobile phone I'm used to use a command 'watch' in its terminal app in this way, for example: $ watch -n 1 date This does every second: clears the screen, launches date and prints its STDOUT into the terminal. Due to the clear of the screen, the output of date stays in the same position and only the part of the seconds is counting upwards. I got to know and to use it, because the Ubuntu phone lacks a digital clock app showing the seconds. The FreeBSD watch(1) command does other things, nothing todo with the above. Do we have something similar? Ofc I could write this as a shell loop, so please don't give me such hints :-) matthias -- Matthias Apitz, ✉ guru@unixarea.de, http://www.unixarea.de/ +49-176-38902045 Public GnuPG key: http://www.unixarea.de/key.pub May, 9: Спаси́бо освободители! Thank you very much, Russian liberators!