Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Groups
  • Search
  • Get Qt Extensions
  • Unsolved
Collapse
Brand Logo
  1. Home
  2. Qt Development
  3. Mobile and Embedded
  4. Load bash script in qtcreator

Load bash script in qtcreator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 581 Views
  • 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.
  • W Offline
    W Offline
    Wasee
    wrote on 29 Nov 2021, 06:34 last edited by
    #1

    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

    J 1 Reply Last reply 29 Nov 2021, 06:36
    0
    • W Wasee
      29 Nov 2021, 06:34

      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

      J Offline
      J Offline
      jsulm
      Lifetime Qt Champion
      wrote on 29 Nov 2021, 06:36 last edited by
      #2

      @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

      https://forum.qt.io/topic/113070/qt-code-of-conduct

      1 Reply Last reply
      0
      • W Offline
        W Offline
        Wasee
        wrote on 29 Nov 2021, 06:48 last edited by
        #3

        @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

        J 1 Reply Last reply 29 Nov 2021, 06:50
        0
        • W Wasee
          29 Nov 2021, 06:48

          @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

          J Offline
          J Offline
          jsulm
          Lifetime Qt Champion
          wrote on 29 Nov 2021, 06:50 last edited by
          #4

          @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?

          https://forum.qt.io/topic/113070/qt-code-of-conduct

          1 Reply Last reply
          0
          • W Offline
            W Offline
            Wasee
            wrote on 29 Nov 2021, 07:00 last edited by
            #5

            @jsulm Hi;
            Yes I want to execute this script after x=1.
            Thanks

            J 1 Reply Last reply 29 Nov 2021, 07:06
            0
            • W Wasee
              29 Nov 2021, 07:00

              @jsulm Hi;
              Yes I want to execute this script after x=1.
              Thanks

              J Offline
              J Offline
              jsulm
              Lifetime Qt Champion
              wrote on 29 Nov 2021, 07:06 last edited by
              #6

              @Wasee Already suggested: https://doc.qt.io/qt-5/qprocess.html

              https://forum.qt.io/topic/113070/qt-code-of-conduct

              1 Reply Last reply
              2
              • W Offline
                W Offline
                Wasee
                wrote on 29 Nov 2021, 07:17 last edited by
                #7

                @jsulm Hi;
                kindly you can give me sort of example.
                thanks

                J 1 Reply Last reply 29 Nov 2021, 07:19
                0
                • W Wasee
                  29 Nov 2021, 07:17

                  @jsulm Hi;
                  kindly you can give me sort of example.
                  thanks

                  J Offline
                  J Offline
                  J.Hilk
                  Moderators
                  wrote on 29 Nov 2021, 07:19 last edited by
                  #8

                  @Wasee dude, literally the first section of the documentation has an example in it.

                  https://doc.qt.io/qt-5/qprocess.html#details


                  Be aware of the Qt Code of Conduct, when posting : https://forum.qt.io/topic/113070/qt-code-of-conduct


                  Q: What's that?
                  A: It's blue light.
                  Q: What does it do?
                  A: It turns blue.

                  1 Reply Last reply
                  2

                  1/8

                  29 Nov 2021, 06:34

                  • Login

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