I want to keep monitoring a specific job on a slurm worload like cluster. I tried to use the watch command and grep the specific id. If the job id is4138, I tried
$> watch squeue -u mnyber004 | grep 4138
$> squeue -u mnyber004 | watch grep 4138
but they doesn't work. The second command works for the first few seconds, but stop working when watch refreshes.
A better idea please?