Szukaj na tym blogu

piątek, 10 stycznia 2014

Script for getting information regulary from website, grep for text and send email if something

First need to download wget, grep and mailsend (https://code.google.com/p/mailsend/downloads/list) for windows

cd "C:\Program Files (x86)\GnuWin32\bin"
wget -O c:\windows\temp\%date%.html --no-check-certificate http://www.websiteaddress.com
cd "C:\Program Files (x86)\GnuWin32\bin"
grep "Bartlomiej" "c:\windows\temp\%date%.html" >> "c:\windows\temp\%date%.txt"

cd "C:\Program Files (x86)\GnuWin32\bin"
set /p var=
mailsend.exe -smtp smtp.gmail.com -port 465 -t username@gmail.com -f username@gmail.com -sub CheckBet -v -ssl -auth -user username@gmail.com -pass PASSWORD -attach c:\windows\temp\%date%.txt

Brak komentarzy:

Prześlij komentarz