Hi, I am running some time-consuming executables with different parameters assigned in a loop as background jobs in parallel. Here is a toy example and its output:
bash-3.2$ set -o notify
bash-3.2$ for (( i=0 ; i < 4 ; i+=2 )); do
> sleep ${i} &
> done
[1] 32394
[2] 32395
bash-3.2$ [1]- Done sleep ${i}
[2]+ Done sleep ${i}
Notice that when each job finishes running, it will notify me. In the finishing message the command of the job will be shown, but in the way that the parameter is not expanded, so there is not obvious way to tell what parameter value it is using by looking at the message. What I hope the message is like
bash-3.2$ [1]- Done sleep 0
[2]+ Done sleep 2
Is it possible to do so?
Thanks and regards!