8 /////////////////////////////////////////////////////////////////
10 /////////////////////////////////////////////////////////////////
13 connect( this, SIGNAL(readyReadStandardError()),
14 this, SLOT(readProcErrout()) );
15 connect( this, SIGNAL(readyReadStandardOutput()),
16 this, SLOT(readProcStdout()) );
30 void Process::runScript(QString spath, QString fpath)
32 spath.replace ("%f",fpath);
33 QStringList args=QStringList::split (' ',spath,false);
34 spath=args.takeFirst();
37 qDebug()<<"Process::runScript : " + spath+" "+args.join(" ");
40 if (!waitForStarted() )
42 QMessageBox::critical( 0, tr( "Critical Error" ),
43 tr("Could not start %1").arg(spath) );
46 if (!waitForFinished())
47 QMessageBox::critical( 0, tr( "Critical Error" ),
48 tr("%1 didn't exit normally").arg(spath) +
51 // if (exitStatus()>0) showOutput=true;
54 /* FIXME-3 output for Process::runScript
55 qDebug()<<readAllStandardOutput();
56 qDebug()<<getStdout();
57 qDebug()<<getErrout();
59 addOutput (getErrout());
60 addOutput (getStdout());
64 void Process::readProcErrout()
66 errOut+=readAllStandardError();
69 void Process::readProcStdout()
71 stdOut+=readAllStandardOutput();
74 QString Process::getErrout()
79 QString Process::getStdout()