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. Couldnt able to write data to terminal using QProcess (Qt version 5.9)
Qt 6.11 is out! See what's new in the release blog

Couldnt able to write data to terminal using QProcess (Qt version 5.9)

Scheduled Pinned Locked Moved Unsolved General and Desktop
2 Posts 2 Posters 539 Views 3 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.
  • N Offline
    N Offline
    Nandhu
    wrote on last edited by
    #1

    process = new QProcess(this);
    process->setProgram("C:/xx/xx/putty");
    process->start();
    process->write("ifconfig\r\n");
    process->closeWriteChannel();

    Note: The written value of process->write is 10.
    Note: Also coudnt able to start a program using - process->start("C:/xx/xx/putty");
    Please some one clarify the above problem.

    1 Reply Last reply
    0
    • SGaistS Offline
      SGaistS Offline
      SGaist
      Lifetime Qt Champion
      wrote on last edited by
      #2

      Hi and welcome to devnet,

      You should first check that putty has indeed started. Note that ifconfig is a *nix command not Windows so this might likely be an issue as well.

      You should check the standard output and standard error channels from your QProcess.

      Interested in AI ? www.idiap.ch
      Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      2

      • Login

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