src/linux_parser.cpp
string LinuxParser::Command(int pid) { 
  string line ;
  std::ifstream filestream(kProcDirectory + to_string(pid) + kCmdlineFilename) ;
  if (filestream.is_open()) {
      std::getline(filestream, line) ;
  }
  filestream.close() ;
  return line; 
}
//Read and return the command associated with a process
Read and return the command associated with a process
Read and return the command associated with a process
string LinuxParser::Command(int pid) { 
  string line ;
  std::ifstream filestream(kProcDirectory + to_string(pid) + kCmdlineFilename) ;
  if (filestream.is_open()) {
      std::getline(filestream, line) ;
  }
  filestream.close() ;
  return line; 
}
string LinuxParser :: Command ( int pid ) { string line ; std :: ifstream filestream ( kProcDirectory + to_string ( pid ) + kCmdlineFilename ) ; if ( filestream . is_open ( ) ) { std :: getline ( filestream , line ) ; } filestream . close ( ) ; return line ; }
Read and return the command associated with a process
Read and return the command associated with a process