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
Several commonly used string methods in JavaScrip...
1. Data desensitization explanation In daily deve...
Concept introduction : 1. px (pixel): It is a vir...
background go-fastdfs is a distributed file syste...
Introduction: Lambda Probe (formerly known as Tom...
Background <br />Students who work on the fr...
Preface Workbench is installed on one computer, a...
1. Effect display An astronaut watch face written...
Transition document address defines a background ...
Here are two ways to install MySQL under Linux: y...
A simple MySQL full backup script that backs up t...
To create a flex container, simply add a display:...
<br />Structure and hierarchy reduce complex...
This article example shares the specific code of ...
1. Download and install VirtualBox software First...