LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-04-2005, 10:06 PM   #1
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Rep: Reputation: 30
continuously run a command?


how would i make a command run continuously until i tell it to stop? say, for example, i wanted to continuously check the state of my hard drive with "hdparm -C /dev/hda" by running this command until i tell it to stop.
 
Old 11-04-2005, 10:11 PM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL
Distribution: Funtoo
Posts: 6,926

Rep: Reputation: 128Reputation: 128
watch -n1 'cat /proc/interrupts'
watch changeable data continuously

man watch for details
 
Old 11-04-2005, 11:03 PM   #3
slinky2004
Member
 
Registered: Oct 2004
Posts: 309

Original Poster
Rep: Reputation: 30
thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Command to run another command against a list of files psweetma Linux - General 3 11-09-2005 06:29 PM
ntpd won't run continuously jeffbarish Linux - Networking 3 10-04-2005 03:29 PM
monitor continuously turns off and on epihammer Mandriva 1 05-21-2004 06:22 PM
The HD light flashing continuously domeili Linux - Newbie 2 10-29-2003 06:17 AM
harddisk keeps rattling continuously botsmuts Linux - General 5 04-16-2003 07:53 AM


All times are GMT -5. The time now is 01:26 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration