-
-
Save orther/d7dcf03f8971e0f7ba40 to your computer and use it in GitHub Desktop.
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 | |
#Comment Test | |
#Comment Test | |
#Comment Test | |
#Comment Test | |
#Comment Test | |
export FIRST_LINE=0 | |
export LAST_LINE=0 | |
if curl http://palmettostatearmory.com/index.php/ar-10/ar-10-lower-parts/psa-pa10-act-lower-parts-kit.html | grep "TEMPORARILY OUT OF STOCK" > /dev/null | |
then echo "$(date) - Palmetto ACT Lower Parts Kits - IT IS IN STOCK!!!!" | tee --append /var/log/PSA_log.txt | |
/usr/bin/mail -s "$(date) - ACT Lower Parts Kits!!" [email protected] <<< "Palmetto ACT Lower Parts Kits are OUT OF STOCK!" | |
export FIRST_LINE=12 | |
export LAST_LINE=22 | |
else | |
echo "$(date) -C1- * PSA ACT Lower Parts Kit is IN STOCK! *" | tee --append /var/log/PSA_log.txt | |
fi; | |
sleep 10 | |
if curl http://palmettostatearmory.com/index.php/ar-10/ar-10-upper-assemblies/psa-pa10-18-mid-ss15-ss-308-w-nib-bcg.html | grep "TEMPORARILY OUT OF STOCK" > /dev/null | |
then echo "$(date) -C2- PA10 18 SS15 SS 308 W/ NIB BCG is out of stock!" | tee --append /var/log/PSA_log.txt | |
else | |
echo "$(date) - PA10 18 SS15 SS 308 W/ NIB BCG - IT IS IN STOCK!" | tee --append /var/log/PSA_log.txt | |
/usr/bin/mail -s "$(date) - PA10 18 SS15 SS 308 W/ NIB BCG!!" [email protected] <<< "PA10 18 SS15 SS 308 W/ NIB BCG are AVAILIBLE!" | |
export FIRST_LINE=24 | |
export LAST_LINE=36 | |
fi; | |
sleep 10 | |
if curl http://palmettostatearmory.com/index.php/psa-pa10-18-stainless-steel-308-ss15-upper-1-10-w-bcg-and-charging-handle.html | grep "TEMPORARILY OUT OF STOCK" > /dev/null | |
then echo "$(date) -C3- PA10 18 SS 308 SS15 UPPER W/ BCG AND CH is out of stock!" | tee --append /var/log/PSA_log.txt | |
else | |
echo "$(date) - PA10 18 SS 308 SS15 UPPER W/ BCG AND CH - IT IS IN STOCK!" | tee --append /var/log/PSA_log.txt | |
/usr/bin/mail -s "$(date) - PA10 18 INCH SS 308 SS15 UPPER W/ BCG AND CHARGING HANDLE!!" [email protected] <<< "PA10 18 INCH SS 308 SS15 UPPER W/ BCG AND CHARGING HANDLE are AVAILIBLE!" | |
export FIRST_LINE=38 | |
export LAST_LINE=50 | |
fi; | |
sleep 10 | |
if curl http://palmettostatearmory.com/index.php/psa-pa10-18-ss-slim-308-ss15-upper-1-10-w-bcg-and-charging-handle.html | grep "TEMPORARILY OUT OF STOCK" > /dev/null | |
then echo "$(date) -C4- PA10 18 SS SLIM 308 SS15 UPPER W/ BCG AND CH is out of stock!" | tee --append /var/log/PSA_log.txt | |
else | |
echo "$(date) - PA10 18 SS SLIM 308 SS15 UPPER W/ BCG AND CH - IT IS IN STOCK!" | tee --append /var/log/PSA_log.txt | |
/usr/bin/mail -s "$(date) - PSA PA10 18 SS SLIM 308 SS15 UPPER W/ BCG AND CHARGING HANDLE" [email protected] <<< "PSA PA10 18 SS SLIM 308 SS15 UPPER W/ BCG AND CHARGING HANDLE are AVAILIBLE!" | |
export FIRST_LINE=52 | |
export LAST_LINE=64 | |
fi; | |
sleep 10 | |
if curl http://palmettostatearmory.com/index.php/psa-20-rifle-length-308-win-1-10-ssk15-upper-with-nib-bcg-and-charging-handle.html | grep "TEMPORARILY OUT OF STOCK" > /dev/null | |
then | |
echo "$(date) -C5- PSA 20 SS 308 SSK15 UPPER W/ NIB BCG AND CH - is out of stock!" | tee --append /var/log/PSA_log.txt | |
else | |
echo "$(date) -C5- * PSA 20 SS 308 SSK15 UPPER W/ NIB BCG AND CH - IS IN STOCK! *" | tee --append /var/log/PSA_log.txt | |
/usr/bin/mail -s "$(date) - PSA 20 INCH 308 SSK15 UPPER W/ NIB BCG AND CHARGING HANDLE" [email protected] <<< "PSA 20 308 SSK15 UPPER W/ NIB BCG AND CHARGING HANDLE ARE AVAILIBLE!" | |
export FIRST_LINE=66 | |
export LAST_LINE=81 | |
fi; | |
sleep 10 | |
if curl http://palmettostatearmory.com/index.php/psa-pa10-18-mid-melonite-ss15g2-upper-with-bcg-and-charging-handle.html | grep "TEMPORARILY OUT OF STOCK" > /dev/null | |
then | |
echo "$(date) -C6- PA10 18 MELONITE SS15G2 UPPER W/ BCG & CH out of STOCK" | tee --append /var/log/PSA_log.txt | |
else | |
echo "$(date) -C6- * PA10 18 MELONITE SS15G2 UPPER W/ BCG AND CH IS AVAILIBLE!! *" | tee --append /var/log/PSA_log.txt | |
/usr/bin/mail -s "$(date) - PA10 18 MELONITE SS15G2 UPPER W/ BCG AND CH IS AVAILIBLE!!" [email protected] <<< "PA10 18 MELONITE SS15G2 UPPER W/ BCG AND CH IS AVAILIBLE!!" | |
export FIRST_LINE=83 | |
export LAST_LINE=99 | |
fi; | |
sleep 10 | |
if curl http://palmettostatearmory.com/index.php/psa-pa10-18-stainless-steel-308-ss15-upper-1-10-w-bcg-and-charging-handle.html | grep "TEMPORARILY OUT OF STOCK" > /dev/null | |
then | |
echo "$(date) -C7- PA10 18 SS 308 SS15 UPPER 1/10 W/ BCG AND CH out of STOCK | |
" | tee --append /var/log/PSA_log.txt | |
else | |
echo "$(date) -C7- * PA10 18 SS 308 SS15 UPPER 1/10 W/ BCG AND CH IS AVAILIBLE!! * | |
" | tee --append /var/log/PSA_log.txt | |
/usr/bin/mail -s "$(date) - PA10 18 SS 308 SS15 UPPER 1/10 W/ BCG AND CH IS AVAILIBLE!!" [email protected] <<< "PA10 18 SS 308 SS15 UPPER 1/10 W/ BCG AND CH IS AVAILIBLE!!" | |
export FIRST_LINE=101 | |
export LAST_LINE=119 | |
fi; | |
/bin/bash /root/Dropbox/Comment_PSA_All_Check |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment