using now system utils instead bin_util

This commit is contained in:
2020-05-03 18:00:05 +02:00
parent 760f08166e
commit 03cddcb17f
8 changed files with 32 additions and 5 deletions

View File

@ -55,7 +55,7 @@ void reHDD::searchDrives(vector <Drive>* pvecDrives)
char * cLine = NULL;
size_t len = 0;
FILE* outputfileHwinfo = popen("./bin_util/hwinfo --short --disk", "r");
FILE* outputfileHwinfo = popen("hwinfo --short --disk", "r");
if (outputfileHwinfo == NULL)
{
@ -120,7 +120,7 @@ void reHDD::filterIgnoredDrives(vector <Drive>* pvecDrives)
// cout << "Same drive path found" << endl;
char * cLine = NULL;
size_t len = 0;
string sCMD = "./bin_util/blkid ";
string sCMD = "blkid ";
sCMD.append(it->getPath());
// cout << "cmd: " << sCMD << endl;
FILE* outputfileBlkid = popen(sCMD.c_str(), "r"); //get UUID from drive

View File

@ -33,7 +33,7 @@ void SMART::readSMARTData(Drive* drive)
size_t len = 0; //lenght of found line
char* cLine = NULL; //found line
string sCMD = ("./bin_util/smartctl --json -a ");
string sCMD = ("smartctl --json -a ");
sCMD.append(drive->getPath());
const char* cpComand = sCMD.c_str();

View File

@ -20,7 +20,7 @@ void Wipe::wipeDrive(Drive* drive)
char* cLine = NULL; //found line
#ifndef DRYRUN
string sCMD = ("./bin_util/shred -v ");
string sCMD = ("shred -v ");
sCMD.append(drive->getPath());
#endif
#ifdef DRYRUN