The following command (get process name) works for me
ps -q $$ -o comm=
bash
But once I try to assign to variable, it does not work
processname=ps -q $$ -o comm=
-q: command not found
Why is that?
The following command (get process name) works for me
ps -q $$ -o comm=
bash
But once I try to assign to variable, it does not work
processname=ps -q $$ -o comm=
-q: command not found
Why is that?