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
QtWS25 Last Chance

Load bash script in qtcreator

Scheduled Pinned Locked Moved Unsolved Mobile and Embedded
8 Posts 3 Posters 571 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.
  • WaseeW Offline
    WaseeW Offline
    Wasee
    wrote on 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

    jsulmJ 1 Reply Last reply
    0
    • WaseeW Wasee

      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

      jsulmJ Offline
      jsulmJ Offline
      jsulm
      Lifetime Qt Champion
      wrote on 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
      • WaseeW Offline
        WaseeW Offline
        Wasee
        wrote on 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

        jsulmJ 1 Reply Last reply
        0
        • WaseeW Wasee

          @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

          jsulmJ Offline
          jsulmJ Offline
          jsulm
          Lifetime Qt Champion
          wrote on 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
          • WaseeW Offline
            WaseeW Offline
            Wasee
            wrote on last edited by
            #5

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

            jsulmJ 1 Reply Last reply
            0
            • WaseeW Wasee

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

              jsulmJ Offline
              jsulmJ Offline
              jsulm
              Lifetime Qt Champion
              wrote on 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
              • WaseeW Offline
                WaseeW Offline
                Wasee
                wrote on last edited by
                #7

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

                J.HilkJ 1 Reply Last reply
                0
                • WaseeW Wasee

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

                  J.HilkJ Offline
                  J.HilkJ Offline
                  J.Hilk
                  Moderators
                  wrote on 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

                  • Login

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