# UPS **Repository Path**: zhuo_nb/ups ## Basic Information - **Project Name**: UPS - **Description**: UPS manage - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2017-06-12 - **Last Updated**: 2025-04-23 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README This script file is to check the Powwer mode of UPS in TNS group written by Zhuo and Qiang 2017-06-12 Program : 1. the script "tns-run.sh" on UPS can send message to "content.txt" in .7 /root/UPS/ 2. "check_power.sh" can compare "content.txt" with "history_msg.txt" to know the status of UPS. if the time of "Battery mode" changed, send message to other computers to Shutdown. 3. use "./check_power.sh" again to renew history_msg.txt 4. use "cat ./check_log.txt" to check whether the content.txt is new or not. 5. "tns-run.sh" is written in /etc/rc.d/rc.local in UPS 6. "check_power.sh" is written in "/etc/crontab" in .7 Check the update time in "content.txt" to see if the script on UPS worke or not. Check the update time "check_log.txt" to see if the script on dot 7 work or not.