cat command with timeout

cat command with timeout

Tzafrir Cohen tzafrir at cohens.org.il
Sun Jun 20 16:45:43 IDT 2010


On Sun, Jun 20, 2010 at 04:06:51PM +0300, Raz wrote:
> watch -n1 cat lala
> is another possiblity

What for?

This re-runs cat 1 second after it has finished running.

Try:

  watch -n1 'sleep 5; echo hi'

It will refresh the display every 6 seconds.

-- 
Tzafrir Cohen         | tzafrir at jabber.org | VIM is
http://tzafrir.org.il |                    | a Mutt's
tzafrir at cohens.org.il |                    |  best
tzafrir at debian.org    |                    | friend



More information about the Linux-il mailing list