This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#ref: https://github.com/ngosang/trackerslist | |
killall aria2c &>/dev/null | |
list=`wget -qO- https://ngosang.github.io/trackerslist/trackers_all_ip.txt|awk NF|sed ":a;N;s/\n/,/g;ta"` | |
if [ -z "`grep "bt-tracker" /etc/aria2/aria2.conf`" ]; then | |
sed -i '$a bt-tracker='${list} /etc/aria2/aria2.conf |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
#获取当前时间 | |
timestamp() { | |
date +"%s" | |
} | |
t=$(timestamp) | |
#获取huginn shell command agent每分钟写入的时间 | |
modt=$(cat /tmp/huginn_unix.txt) |