LinuxLinks.com
Newbies What Next ? News Forums Calendar

Search





News Sections
Home
General News (3972/0)
Reviews (626/0)
Press Releases (464/0)
Distributions (187/0)
Software (807/0)
Hardware (522/0)
Security (192/0)
Tutorials (337/0)
Off Topic (180/0)


User Functions
Username:

Password:

Don't have an account yet? Sign up as a New User


Events
There are no upcoming events



CLI Magic: Watch it   
Monday, May 23 2005 @ 04:55 PM EDT
Contributed by: glosser

Linux.com continues their Command-Line-Interface series with a look at "watch".

This week we'll take a look at a very simple command called watch. You know what they say, a watched pot never boils. That's why it makes good sense to take advantage of this little tool to watch it for you. Waiting for mail? Want to see if a job has completed? Watch can help. At the CLI, of course. Climb down out of your GUI and take a look.

Watch allows you to see a real-time display of the latest output -- the first screenful of output -- from a command. So instead of you having to retype the command 50 times while you wait for whatever to occur, you tell watch to do it for you. By default, watch reissues your command every 2 seconds.

The basic format for the watch command is simply watch command. Once started, watch keeps running until it is stopped. You don't want to use watch to programs that keep running. If you do, you'll be sorry.

Full tutorial

  [ Views: 1618 ]  


CLI Magic: Watch it | 0 comments | Create New Account
The following comments are owned by whoever posted them. This site is not responsible for what they say.
No user comments.


What's Related
  • Full tutorial
  • More by glosser
  • More from Tutorials


  • Story Options
  • Mail Story to a Friend
  • Printable Story Format


  • We have written a range of guides highlighting excellent free books for popular programming languages. Check out the following guides: C, C++, C#, Java, JavaScript, CoffeeScript, HTML, Python, Ruby, Perl, Haskell, PHP, Lisp, R, Prolog, Scala, Scheme, and SQL.

    Built with GeekLog and phpBB
    Comments to the webmaster are welcome
    Copyright 2009 LinuxLinks.com - All rights reserved