forked from qt-creator/qt-creator
ProjectExplorer: Introduce generic application runner.
This class aims to be a flexible worker class for SSH-based run controls. It supersedes AbstractRemoteLinuxApplicationRunner as well as all of its derived classes, while having no RemoteLinux dependencies itself. Change-Id: If24f03a32126b36fc3d0b253a1615ad0af5f2b46 Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
@@ -75,3 +75,11 @@ QStringList QnxUtils::searchPaths(QnxAbstractQtVersion *qtVersion)
|
||||
|
||||
return searchPaths;
|
||||
}
|
||||
|
||||
QString QnxUtils::applicationKillCommand(const QString &applicationFilePath)
|
||||
{
|
||||
return QString::fromLatin1("for PID in $(ps -f -o pid,comm | grep %1 | awk '/%1/ {print $1}'); "
|
||||
"do "
|
||||
"kill $PID; sleep 1; kill -9 $PID; "
|
||||
"done").arg(applicationFilePath);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user