Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 29 Jan 2001 05:36:06 +0100 (CET)
From:      Raymond Wiker <Raymond.Wiker@fast.no>
To:        "Justin W. Pauler" <jwpauler@jwpages.com>
Cc:        freebsd-questions@FreeBSD.ORG
Subject:   tail
Message-ID:  <14964.62262.227078.687347@raw.grenland.fast.no>
In-Reply-To: <01012813255100.83352@gateway.drnet.fais.net>
References:  <01012813255100.83352@gateway.drnet.fais.net>

next in thread | previous in thread | raw e-mail | index | archive | help
Justin W. Pauler writes:
 > I am not sure if this is a command, but if not, I think it would be
 > useful. I have often needed to watch output from different commands
 > like df, but I have to continously run the command to get the
 > latest amount. I was thinking, why couldn't tail do that? Since it
 > can watch files for changes and display those, why not for a
 > command?
 > 
 > I tried tail -f |df -h and could not get it to update. I would
 > appreciate your thoughts.

	I don't think there's any way of making this particular
combination work :-) On the other hand, you may want to try the
following in bash or sh:

while true; do clear; df -h; sleep 1; done

	//Raymond.

-- 
Raymond Wiker
Raymond.Wiker@fast.no


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?14964.62262.227078.687347>