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. Qt-4.8.6 App hanged when run through scripts .

Qt-4.8.6 App hanged when run through scripts .

Scheduled Pinned Locked Moved Unsolved General and Desktop
8 Posts 3 Posters 447 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.
  • MijazM Offline
    MijazM Offline
    Mijaz
    wrote on last edited by
    #1

    Hi.
    I am using Qt 4.8.6 version deployed on SDR Board adrv9361

    Step1:
    First procedure I am using to run my application is follows which is working fine:

    Ctrl + Alt + F1 
    cd /home/analog/Desktop
    ./Myapplication -qws
    

    I want to run my application automatically though scripts

    Step 2 :
    Second procedure I written scripts to run auto start.

    #!/bash/sh
    sudo chvt 1
    cd /home/analog/Desktop
    ./myApplication -qws
    

    This technique failed because this scripts is running in tty7
    My application gets open but hanged.
    The reason in my mind is that scripts is running in tty7 and my application need to run in tty1 so first I need to open tty1 and close tty7.
    Now how I can close tty7 and run tty1 thorugh scripts?

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

      Hi,

      Is that script part of your system startup ?

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

      MijazM 1 Reply Last reply
      0
      • SGaistS SGaist

        Hi,

        Is that script part of your system startup ?

        MijazM Offline
        MijazM Offline
        Mijaz
        wrote on last edited by
        #3

        @SGaist
        Yes I have included in startup list. Therefore it opens the application but application did not work. it gets hang.

        Can I close the tty7 and open tty1 thorugh terminal?

        aha_1980A 1 Reply Last reply
        0
        • MijazM Mijaz

          @SGaist
          Yes I have included in startup list. Therefore it opens the application but application did not work. it gets hang.

          Can I close the tty7 and open tty1 thorugh terminal?

          aha_1980A Offline
          aha_1980A Offline
          aha_1980
          Lifetime Qt Champion
          wrote on last edited by
          #4

          @Mijaz

          Can I close the tty7 and open tty1 thorugh terminal?

          I'm not sure if that is possible.

          But why does your program rely on tty1? What do you do inside so it hangs on other tty's?

          Regards

          Qt has to stay free or it will die.

          MijazM 1 Reply Last reply
          0
          • aha_1980A aha_1980

            @Mijaz

            Can I close the tty7 and open tty1 thorugh terminal?

            I'm not sure if that is possible.

            But why does your program rely on tty1? What do you do inside so it hangs on other tty's?

            Regards

            MijazM Offline
            MijazM Offline
            Mijaz
            wrote on last edited by
            #5

            @aha_1980
            I am using qt4.8.6 version an deployed on sdr board.
            As you know there is limitation that we have to open through -qws
            like

            ./myapplication -qws
            

            this -qws is need to run in tty1 therefor i need to shift tty7 to tty1

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

              Well, one way could be to modify your system setup so that it does not create that many tty.

              What are you using for system startup ? systemd ? initd ?

              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
              1
              • MijazM Offline
                MijazM Offline
                Mijaz
                wrote on last edited by
                #7

                I am using systemd.

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

                  Then I would check systemd's recommandation to start an application.

                  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
                  1

                  • Login

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