Results 1 to 2 of 2

Thread: When I send a command in QT

  1. #1
    Join Date
    Feb 2006
    Posts
    1
    Qt products
    Qt3 Qt/Embedded
    Platforms
    Unix/X11 Windows

    Default When I send a command in QT

    I need an instrucion to send a "ls -l > fich" command! I try with Qprocess instruction but does not function...

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

    Default Re: When I send a command in QT

    QProcess doesn't understand ">", you must use shell for this:
    Qt Code:
    1. process.start( "/bin/sh", QStringList() << "-c" << "ls -l > fich" );
    To copy to clipboard, switch view to plain text mode 

Similar Threads

  1. Manually send signal to slot
    By donmorr in forum Qt Programming
    Replies: 1
    Last Post: 29th May 2006, 15:03
  2. send signal from QCombobox
    By raphaelf in forum Qt Programming
    Replies: 22
    Last Post: 28th February 2006, 14:18
  3. Replies: 3
    Last Post: 6th February 2006, 17:41

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
  •  
Digia, Qt and their respective logos are trademarks of Digia Plc in Finland and/or other countries worldwide.