Hi,
Tried the other option specified the following output.
arguments1 << "-i" << "<filename_with_absolute_path";
// other option
// arguments1 << "-i" << "<" << "filename_with_absolute_path";
proc1->start("/usr/bin/cpio", arguments1);
if(!proc1->waitForFinished())
qWarning("Returned");
connect(proc1, SIGNAL(started()), this, SLOT(readData()));
void Process::readData()
{
qWarning("Started");
}
QStringList arguments1;
arguments1 << "-i" << "<filename_with_absolute_path";
// other option
// arguments1 << "-i" << "<" << "filename_with_absolute_path";
proc1->start("/usr/bin/cpio", arguments1);
if(!proc1->waitForFinished())
qWarning("Returned");
connect(proc1, SIGNAL(started()), this, SLOT(readData()));
void Process::readData()
{
qWarning("Started");
}
To copy to clipboard, switch view to plain text mode
I got the following output. the process is able to start when i checked for the pid of the process, the state of the process is also S+ in #pa ax
The program halts with following output
Returned
QProcess: Destroyed while process is still running.
I am not able to understand, can we read the output generated by any buffer?
Regards,
Sarode
Bookmarks