Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Qt Creator and other tools
  4. Qt Creator 3.5.1 stdin for command line with Deploy to Remote Linux Host
Forum Update on Monday, May 27th 2025

Qt Creator 3.5.1 stdin for command line with Deploy to Remote Linux Host

Scheduled Pinned Locked Moved Unsolved Qt Creator and other tools
2 Posts 1 Posters 939 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Snat
    wrote on 20 Feb 2018, 07:26 last edited by
    #1

    Hi

    following
    [https://forum.qt.io/topic/18939/qt-creator-stdin-for-command-line-with-deploy-to-remote-linux-host](link url)

    I am using the Remote Deploy feature of Qt Creator to launch my simple command line application on an embedded Linux target board. My application can get from the user inputs using stdin
    It crosscompiles, transfers to the board, and launches and the 'Application Output' window near the bottom of Qt Creator, but I cannot type anywhere and provide stdin to the application running remotely through Qt Creator.

    How can I accomplish this within Qt Creator? Can I somehow manipulate the deploy 'arguments' to connect a device to provide stdin to my command line app?

    I tried a solution from different forum
    [https://stackoverflow.com/questions/11869281/qt-creator-stdin-for-command-line-with-deploy-to-remote-linux-host/11887156](link url)

    "I found out that there is no way to provide stdin to an app launched by qt creator from within the IDE.
    I did try a few things and it looks like a named pipe works just fine. Luckily it’s included with Busybox so it’s on my board.
    To use it you launch the app remotely from Qt Creator using the ‘Alternate executable on device’ option under ‘run settings’ and pipe the last line of the named pipe to your c++ program expecting stdin. So your ‘Alternate executable on device looks like:"

    tail -f mypipe | /home/prog//test

    this is not working for Qt creator 3.5.1 based on qt 5.5.1
    when running , getting back

    Process tail -f mypipe | /home/prog//test created; pid = 3331
    Cannot executable tail -f mypipe | /home/prog//test: No such file or directory

    • I can run the program using SSH with out any problem ( all is valid on target)
    • tried different syntax with same result: '', path in directory field at QT creator, arguments in arguments field at QT creator
    • it look like QT creator can only handle the syntax using only the exe

    any suggestions?

    S 1 Reply Last reply 23 Feb 2018, 18:23
    0
    • S Snat
      20 Feb 2018, 07:26

      Hi

      following
      [https://forum.qt.io/topic/18939/qt-creator-stdin-for-command-line-with-deploy-to-remote-linux-host](link url)

      I am using the Remote Deploy feature of Qt Creator to launch my simple command line application on an embedded Linux target board. My application can get from the user inputs using stdin
      It crosscompiles, transfers to the board, and launches and the 'Application Output' window near the bottom of Qt Creator, but I cannot type anywhere and provide stdin to the application running remotely through Qt Creator.

      How can I accomplish this within Qt Creator? Can I somehow manipulate the deploy 'arguments' to connect a device to provide stdin to my command line app?

      I tried a solution from different forum
      [https://stackoverflow.com/questions/11869281/qt-creator-stdin-for-command-line-with-deploy-to-remote-linux-host/11887156](link url)

      "I found out that there is no way to provide stdin to an app launched by qt creator from within the IDE.
      I did try a few things and it looks like a named pipe works just fine. Luckily it’s included with Busybox so it’s on my board.
      To use it you launch the app remotely from Qt Creator using the ‘Alternate executable on device’ option under ‘run settings’ and pipe the last line of the named pipe to your c++ program expecting stdin. So your ‘Alternate executable on device looks like:"

      tail -f mypipe | /home/prog//test

      this is not working for Qt creator 3.5.1 based on qt 5.5.1
      when running , getting back

      Process tail -f mypipe | /home/prog//test created; pid = 3331
      Cannot executable tail -f mypipe | /home/prog//test: No such file or directory

      • I can run the program using SSH with out any problem ( all is valid on target)
      • tried different syntax with same result: '', path in directory field at QT creator, arguments in arguments field at QT creator
      • it look like QT creator can only handle the syntax using only the exe

      any suggestions?

      S Offline
      S Offline
      Snat
      wrote on 23 Feb 2018, 18:23 last edited by
      #2

      @Snat
      Solve it using different approch
      Using argv to send either cin or pathway to fifo file.
      Then using ssh remotly with echo command > myfifofile.
      My code do the rest
      Reading from file or cin

      Hope this help

      1 Reply Last reply
      2

      1/2

      20 Feb 2018, 07:26

      • Login

      • Login or register to search.
      1 out of 2
      • First post
        1/2
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • Users
      • Groups
      • Search
      • Get Qt Extensions
      • Unsolved