Results 1 to 2 of 2

Thread: QProcess and Pipes

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Join Date
    Jan 2006
    Location
    Warsaw, Poland
    Posts
    5,372
    Qt products
    Qt3 Qt4
    Platforms
    Unix/X11 Windows
    Thanks
    28
    Thanked 976 Times in 912 Posts

    Default Re: QProcess and Pipes

    You are invoking ps with two parameters: "aux" and "| grep SMRTemd". Just as if you wrote:
    $ ps aux "| grep SMRTemd"
    If you want to make | work, start a shell:
    Qt Code:
    1. QString sCmd( "/bin/sh" );
    2. QStringList slArgs;
    3. slArgs << "-c" << "ps aux | grep SMRTemd";
    To copy to clipboard, switch view to plain text mode 

  2. The following user says thank you to jacek for this useful post:

    KaptainKarl (10th April 2007)

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.