Skip to content

Error running make install for the first time #1

@gonrial

Description

@gonrial

Under Ubuntu, this is the error I got.

ps -ef | grep "services/movies.py" | grep -v grep | awk '{print $2}' | xargs 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).
make: *** [shutdown] Error 123

The problem is related to the kill part, as this is my first time, there is no PID and therefore, kill complains.

Fixed by adding -r to the xargs. According to the man page: Do not run the command if there are no arguments. Normally the command is executed at least once even if there are no arguments.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions