I have this problem with makefile. When I execute this command :
kill $(ps aux | grep '[p]ython service/logdata.py' | awk '{print $2}')
from terminal it works fine. But with this rule from makefile :
stop:
kill $(ps aux | grep '[p]ython service/logdata.py' | awk '{print $2}')
I get this error:
kill
Usage:
kill [options] <pid> [...]
Options:
<pid> [...] send signal to every <pid> listed
-<signal>, -s, --signal <signal>
specify the <signal> to be sent
-l, --list=[<signal>] list all signal names, or convert one to a name
-L, --table list all signal names in a nice table
-h, --help display this help and exit
-V, --version output version information and exit
For more details see kill(1).
makefile:19: recipe for target 'stop' failed
make: *** [stop] Error 1
I already checked that grep output is not empty.
Thank you in advance.