Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. General and Desktop
  4. Interactive Process
Forum Updated to NodeBB v4.3 + New Features

Interactive Process

Scheduled Pinned Locked Moved General and Desktop
2 Posts 2 Posters 701 Views 1 Watching
  • 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.
  • saeedhardanS Offline
    saeedhardanS Offline
    saeedhardan
    wrote on last edited by
    #1

    hi ,
    How can i implement a process that keeps running and takes input and gives output .
    like plink.exe for instance .
    i want to able to run it then give it commands without it closing .
    In code it should look like this :
    @
    process = openProcessInteractively("plink.exe yyy@1.1.1.1 -pw xxx");
    process->run("tcsh");
    process->readOutput();
    process->run("tcsh cmd1");
    process->readOutput();
    process->run("tcsh cmd2");
    process->readOutput();
    ...
    @

    1 Reply Last reply
    0
    • sierdzioS Offline
      sierdzioS Offline
      sierdzio
      Moderators
      wrote on last edited by
      #2

      Please see the docs for "QProcess":http://qt-project.org/doc/qt-5/qprocess.html#communicating-via-channels. This kind of interaction should be possible, but will not be trivial to do.

      (Z(:^

      1 Reply Last reply
      0

      • Login

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