| |

VerySource

 Forgot password?
 Register
Search
View: 644|Reply: 2

Wait online! !! Regularly check whether the program is not responding, and if not, restart the program. How to achieve?

[Copy link]

2

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-3-7 11:30:02
| Show all posts |Read mode
I wrote a sending and receiving program for SMS cats, which is executed every 30 seconds.

Questions are as follows:
1. How to check whether the program runs normally?

2. If the program is not responding, I want to restart the program, how to achieve it?
Reply

Use magic Report

0

Threads

1

Posts

2.00

Credits

Newbie

Rank: 1

Credits
2.00

 China

Post time: 2020-5-26 15:15:01
| Show all posts
Write a separate program and use Winsock to communicate with the main program regularly. If no response is received, it means there is no response and restart.
Reply

Use magic Report

0

Threads

2

Posts

3.00

Credits

Newbie

Rank: 1

Credits
3.00

 China

Post time: 2020-5-28 15:30:02
| Show all posts
Write a monitoring daemon to determine the time period between the last run and this inspection, the status value of the sending and receiving program
If it's not right, just hang and renew
Reply

Use magic Report

You have to log in before you can reply Login | Register

Points Rules

Contact us|Archive|Mobile|CopyRight © 2008-2023|verysource.com ( 京ICP备17048824号-1 )

Quick Reply To Top Return to the list