I realize that this might be a stupid issue but I can\'t solve it for hours even if digged stackoverflow site and google throughly.
Here is the base code in .bashrc
Almost forgot about this issue and answering my own question after found a working solution long ago ;) Follow works great in my .bashrc for years
mygkrellm() { if pidof -x "gkrellm" >/dev/null; then echo "Gkrellm is already running. Go to shell!" else nohup "/usr/bin/gkrellm" & fi }