I am trying to make a script that will notify me if it can't logon to a website.
So far I found if I run
Code:
GET "http://nexpart.com/do_login.php?nexpartuname=username&pwd=password" |grep -o Invalid
and it can log in it will not display anything but if it fails it will display "Invalid"
My problem is building a script that checks to see if it gets "Invalid" and then e-mails me or somthing if it gets "Invalid".