Stack Exchange network consists of 183 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.
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.
I think the idea is to run it in the foreground. crontab would run the command in the background, and even if it could run it in the foreground it'd be overkill, IMHO. This is exactly what watch is for.
crontab
would run the command in the background, and even if it could run it in the foreground it'd be overkill, IMHO. This is exactly whatwatch
is for.