Skip to content

.tip

· one of the small things

watch runs a command every few seconds and highlights what changed

Use it instead of re-running a status command by hand:

watch -n 2 -d 'psql -c "select count(*) from jobs where status = '"'"'pending'"'"'"'

-d highlights the characters that changed since the last run, which is how you see a counter move. The quoting is ugly, but it's worth it.

shelloperations