On Sun, 15 May 2005, Chuck Hast wrote:
> Well this is the next piece. All I want to do is a simple little script that
> will read from a file in the /proc/network directory.
>
> I have a little script that has the following
>
> cat /proc/net/rose
> sleep 2
> Now I am trying to figure out how to loop it back, I guess I can jump out of
> it with a ^C. I am looking at the books and was hoping to find something
> along this line as a sample to follow.
while true ; do
cat /proc/net/rose
sleep 2
done
or more succinctly (and just a smidge faster)
while : ; do
cat /proc/net/rose
sleep 2
done
But why don't you do
watch -n 2 tail proc/net/rose
instead?
-- -eben ebQenW1@EtaRmpTabYayU.rIr.OcoPm home.tampabay.rr.com/hactar SAGITTARIUS: All your friends are laughing behind your back... kill them. Take down all those naked pictures of Ernest Borgnine you've got hanging in your den. -- Weird Al, _Your Horoscope for Today_----------------------------------------------------------------------- This list is provided as an unmoderated internet service by Networked Knowledge Systems (NKS). Views and opinions expressed in messages posted are those of the author and do not necessarily reflect the official policy or position of NKS or any of its employees.
This archive was generated by hypermail 2.1.3 : Fri Aug 01 2014 - 18:59:04 EDT