Results 1 to 2 of 2

Thread: Regarding pidof

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Mar 2011
    Posts
    4
    Thanks
    2
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11

    Question Regarding pidof

    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?

  2. #2
    Join Date
    Sep 2009
    Location
    Wroclaw, Poland
    Posts
    1,394
    Thanked 342 Times in 324 Posts
    Qt products
    Qt4 Qt5
    Platforms
    MacOS X Unix/X11 Windows Android

    Default Re: Regarding pidof

    Use QProcess to run this command, you can get it's output by connecting to one of readyRead* signals and calling one of read* methods.
    Last edited by stampede; 8th March 2011 at 10:44. Reason: corrected link

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Qt is a trademark of The Qt Company.