PDA

View Full Version : Regarding pidof



SYR
8th March 2011, 10:39
when I try to call system("pidof <process-name>") in my GUI (which is made from QT3)
the corresponding pid is getting displayed in terminal only.I am unable to get it in GUI. Can anyone help me?

stampede
8th March 2011, 10:43
Use QProcess (http://doc.qt.nokia.com/3.3/qprocess.html)to run this command, you can get it's output by connecting to one of readyRead* signals and calling one of read* methods.