Application software generally has such business requirements: When a new version of the APP is available, the program needs to be updated. After the update is completed (the so-called update is mostly in the form of overwriting), there is no need to shut down the computer, but the application can restart itself. I checked some information online, but the descriptions were very complicated. It would be simpler, faster and more brutal to create a script to complete my work in batches. In the program, you can restart through QT's thread library function, or you can simply call an external script to complete the restart work.
As you can see here, The external script contains the following: #!/bin/sh killall -9 my_app echo "restart my_app!" #close backlight echo 0 > /sys/class/backlight/backlight/brightness /opt/app/my_app -qws -nomouse -font wqy-microhei & When the script is executed, it will first call This simply completes the restart of the app. Summarize The above is the full content of this article. I hope that the content of this article will have certain reference learning value for your study or work. Thank you for your support of 123WORDPRESS.COM. If you want to learn more about this, please check out the following links You may also be interested in:
|
<<: Vue implements countdown function
>>: Diagram of the process from uninstallation to installation of MySQL 5.7.18 yum under Linux
Table of contents 1. Overview 1.1 Usage of queryS...
1. Download the image docker pull selenium/hub do...
Introduction Today I will share the use of the su...
I encountered several browser compatibility issue...
There are some issues that are not limited to Vue...
Table of contents Preface Enumerable properties I...
Table of contents Preface 1. Current gcc version ...
When using a cloud server, we sometimes connect t...
Recently, I have implemented such an effect: clic...
Excel is the most commonly used tool for data ana...
Preface When the WeChat mini program project invo...
1.docker search mysql查看mysql版本 2. docker pull mys...
Table of contents Overview What is Image Compress...
Table of contents 1. What is vuex 2. Installation...
Detailed explanation of the implementation method...