cameradar_standalone/src/tasks/mapping.cpp
bool
nmap_is_ok() {
    return (
        (system("dpkg -l | cut -c 5-9 | grep nmap") == 0)
        && launch_command("mkdir -p /tmp/scans")); // Creates the directory in which the scans will be stored
}
// The first command checks if dpkg finds nmap in the system by cutting the
// result and grepping
// nmap from it.
//
// The second command checks the version of nmap, right now it needs to be the
// 6.47 but this could
// be changed to 6 or greater depending on the needs. In a docker container
// this should not be a
// problem.
The first command checks if dpkg finds nmap in the system by cutting the
result and grepping
nmap from it.

The second command checks the version of nmap, right now it needs to be the
6.47 but this could
be changed to 6 or greater depending on the needs. In a docker container
this should not be a
problem.
The first command checks if dpkg finds nmap in the system by cutting the result and grepping nmap from it . The second command checks the version of nmap right now it needs to be the 6 . 47 but this could be changed to 6 or greater depending on the needs . In a docker container this should not be a problem .
bool
nmap_is_ok() {
    return (
        (system("dpkg -l | cut -c 5-9 | grep nmap") == 0)
        && launch_command("mkdir -p /tmp/scans")); 
}
bool nmap_is_ok ( ) { return ( ( system ( " " ) == 0 ) && launch_command ( " " ) ) ; }
The first command checks if dpkg finds nmap in the system by cutting the
result and grepping
nmap from it.
The first command checks if dpkg finds nmap in the system by cutting the result and grepping nmap from it .
// Creates the directory in which the scans will be stored