kut77less,
sorry for late response, I have been very busy.

It looks "grep" command works differently if "." character is written in variable, don't know why this kind of behaviour. Work-around solution is to to replace the following string in row 19:
Code:
grep -v '$WHITE_PROCESSES_LIST'
with code
Code:
grep -v "$WHITE_PROCESSES_LIST"
So instead of single quotes use double quotes.

This should work.

If you don't like above solution, then just use "npviewer" as WHITE_PROCESS_LIST variable, so without "." character.

Please write back if you solved the problem.
Regards