LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   continuously run a command? (https://www.linuxquestions.org/questions/linux-newbie-8/continuously-run-a-command-380057/)

slinky2004 11-04-2005 09:06 PM

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.

Bruce Hill 11-04-2005 09:11 PM

watch -n1 'cat /proc/interrupts'
watch changeable data continuously

man watch for details

slinky2004 11-04-2005 10:03 PM

thanks


All times are GMT -5. The time now is 11:56 AM.