initial push

This commit is contained in:
2024-04-01 14:58:20 -06:00
parent c8f80a6323
commit 9c25429f51
11 changed files with 115 additions and 0 deletions
+15
View File
@@ -0,0 +1,15 @@
SLRP=$PWD/.slrp
PROXY_FILE=$SLRP/proxies.txt;
TEMP=$SLRP/proxies.tmp;
while true;
do
curl -s http://localhost:8089/api/pool | jq '.Records[] | .Proxy' | sed s/\"//g > $TEMP;
if [ ! -s $TEMP ]
then
echo "Nothing at the moment"; sleep 2;
else
cat $TEMP > $PROXY_FILE;
echo "updated- sleeping 2 seconds..."; sleep 2;
cat $PROXY_FILE;
fi
done;