Skip to content
Snippets Groups Projects
Commit 059d4a66 authored by Recolic Keghart's avatar Recolic Keghart
Browse files

add extra tools

parent 9140ba96
No related branches found
No related tags found
No related merge requests found
...@@ -2,7 +2,9 @@ ...@@ -2,7 +2,9 @@
> Tested at Feb 12, 04:03, 2020 (UTC-8). > Tested at Feb 12, 04:03, 2020 (UTC-8).
http://fkfy.hust.edu.cn/jkzksb.htm > http://fkfy.hust.edu.cn/jkzksb.htm
Just modify config.py and enjoy!
## requirements ## requirements
......
#!/usr/bin/fish
## This daemon will be autostart-ed on gnome startup.
## It help you submit ncov in completely automatic way.
while true
set fname /tmp/hust-ncov-mark-(env TZ=Asia/Shanghai date +%j)
set fails 0
if not test -f $fname
echo 'CALL HUST-NCOV'
timeout 3m /usr/mybin/hust_ncov_submit
and begin
echo 1 > $fname
echo 'SUCCESS'
set fails 0
end; or begin
set fails (math 1+$fails)
echo "fails=$fails"
test $fails -ge 14
and /usr/mybin/recolic_email_notify root@recolic.net "RECOLIC NCOV NOTIFY" "hust-ncov daily auto submit has been failing for $fails times. Please fix the script!"
end
end
sleep 300
end
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment