Important: Please read the Qt Code of Conduct - https://forum.qt.io/topic/113070/qt-code-of-conduct

How to call interacted command such as bash?



  • Hi,
    I want to write a simple program, it first initialize something, and then call bash (and pass stdin/stdout to bash) to interact with user. I need to keep my program running since it is a service. Is QProcess suitable for this?



  • I found a solution.
    fork and parent task exec bash, child task as service task.


Log in to reply