nand
8th April 2014, 13:40
Hi everyone,
I`m using QT 4.8 on a ubuntu 12.04 machine.
I`m at the end of finishing a little software. But now I cant get through a very simple task. I`m a newbie but I try hard :)
I just want to following linux command to be executed:
rhash -rH --sha1 --md5 /hashfolder >hashlist
Getting the output from rhash into the hashlist file.
QProcess rhasher;
QString rhash = "rhash";
rhasher.startDetached(QString("rhash -rH --sha1 --md5 /hashfolder/));
QString results = rhasher.readAllStandardOutput();
QFile file("/home/user/hashliste");
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&file);
out << results;
std::cout << "make MD5 und SHA1 hashes" << std::endl;
file.close();
rhasher.waitForFinished(-1);
I`m confusing myself right now. Hope you can help me out. Thanks
greetings Nand
I`m using QT 4.8 on a ubuntu 12.04 machine.
I`m at the end of finishing a little software. But now I cant get through a very simple task. I`m a newbie but I try hard :)
I just want to following linux command to be executed:
rhash -rH --sha1 --md5 /hashfolder >hashlist
Getting the output from rhash into the hashlist file.
QProcess rhasher;
QString rhash = "rhash";
rhasher.startDetached(QString("rhash -rH --sha1 --md5 /hashfolder/));
QString results = rhasher.readAllStandardOutput();
QFile file("/home/user/hashliste");
file.open(QIODevice::WriteOnly | QIODevice::Text);
QTextStream out(&file);
out << results;
std::cout << "make MD5 und SHA1 hashes" << std::endl;
file.close();
rhasher.waitForFinished(-1);
I`m confusing myself right now. Hope you can help me out. Thanks
greetings Nand