Load bash script in qtcreator
-
wrote on 29 Nov 2021, 06:34 last edited by
Dear all;
Well appreciated your help! I want to bash script file in my qt application after getting some variable like: when x=1 then load script1.sh file and when x=0 then load script2.sh file. How it is possible both scripts are present in same directory where my application is running.
Thanks in advance -
Dear all;
Well appreciated your help! I want to bash script file in my qt application after getting some variable like: when x=1 then load script1.sh file and when x=0 then load script2.sh file. How it is possible both scripts are present in same directory where my application is running.
Thanks in advance@Wasee What do you mean by "load"? And how is it related to QtCreator?
Do you mean you want to execute these scripts as external processes?
If so then see https://doc.qt.io/qt-5/qprocess.html -
wrote on 29 Nov 2021, 06:48 last edited by
@jsulm Hi;
Thanks for your reply! I am using the qtcreator application for a system in qtcreator application I am reading some value from external process out of qt application.When that process send a value x=1 to my application on this value I need to load script from my qt application after arrival of x=1, the script is present where my application is present means same folder.
thanks -
@jsulm Hi;
Thanks for your reply! I am using the qtcreator application for a system in qtcreator application I am reading some value from external process out of qt application.When that process send a value x=1 to my application on this value I need to load script from my qt application after arrival of x=1, the script is present where my application is present means same folder.
thanks@Wasee Sorry, you did not answer my question, even though you wrote a lot of text.
Again: what does "load" mean here? Do you want to execute this script or what? -
@Wasee Already suggested: https://doc.qt.io/qt-5/qprocess.html
-
@Wasee dude, literally the first section of the documentation has an example in it.
6/8