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. readyAllStandardOutput doesn't return anything
Qt 6.11 is out! See what's new in the release blog

readyAllStandardOutput doesn't return anything

Scheduled Pinned Locked Moved General and Desktop
1 Posts 1 Posters 565 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 saeedhardan
    #1

    Hi ,
    im trying to run plink.exe and get its output .
    as you know when you first try to connect to a remote computer for the first time you'll get a warning that says this remote pc's key isn't recognized do you trust y/n .......
    when I try to read this output using :

          process->waitForreadyRead();
          output = process->readAllStandardOutput();
    

    i don't get anything , see this picture.
    the output is empty .
    but if i continue and press y , and after the connection is successful , then use the above code to read , i get the output of the session only , meaning this part only output .
    how can i also read the output of plink in the first picture ?
    thanks
    to further explain the problem this is the "complete code" :

    process->start("plink.exe",input_list,QIODevice::ReadWrite);
    process->waitForStarted();
    process->waitForReadyRead();
    Qstring output = process->readAllStandardOutput();
    "analyze output and check what the program is asking if decided to continue then"
    process->write("y\n");
    process->waitForFinished();
    output = process->readAllStandardOutput();
    Qmessagebox::information(this,"info",output);
    
    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