Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Say if I need to run a command checkstatus --jobnumber 12345 to check the job status. The command prints out the info to standard output. Is there any way to run this command on shell repeatedly every minute? I wanted to see the latest job status.

share|improve this question
why you dont wan't to use crontab? –  Alan Kuras Mar 7 '12 at 6:02

2 Answers 2

up vote 7 down vote accepted

Also watch(1)

share|improve this answer
this is the best way imho. watch -n 60 'command to run' –  Sirex Mar 7 '12 at 7:46

Here's a small bashscript that would do that:


while : 
        checkstatus --jobnumber 12345;
        sleep 60;
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.