Skip to content

keep an eye on that

09/11/2012

You often want to keep an eye on something on a box like the size of a file, who is on the box or a process is up or down.  You could type the command over and over again, you could do the up key and return if you use bash as your shell or you could run the following

while :; do

 clear

 <insert command(s) here>

 sleep <insert amount of time between iterations in seconds here>

done

I hope this helps

Advertisements

From → Uncategorized

3 Comments
  1. I use the command ‘watch’.

    watch -n

  2. Thanks Eric!

    I’m starting to work on more linux machines so this will be prove useful although at the moment most of the machines I work on are solaris and watch doesn’t appear as default command there 😦 For any that’ll allow me I will put in a command called watch in the default path. Thanks again.

Trackbacks & Pingbacks

  1. rotateSnoop « bonstechblog

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: