Never been to DZone Snippets before?

Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

About this user

nevada

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS 

watch -- execute commands over and over again.

* Fast and easy way of setting a reminder for yourself, while working in the command line: ( sleep 10 && echo -e "Tea is ready\a" ) & 10 is a number of secons to wait until fire up the alarm, "-e" argument to echo forces it to see the "\a" sequence, which is an alarm bell.
* execute commands over and over again - run fortune (program) every 20 seconds, run program 'w' every 2 seconds (default), keep track of filename.
 watch -n 20 fortune
watch w
watch ls -l filename

« Newer Snippets
Older Snippets »
Showing 1-1 of 1 total  RSS