1

Wget/curl credentials validation

view story
linux-howto

http://www.unix.com – Experts, I login to a 3rd party and pull some valuable information with my credentials. I pass my credentials via --post-data in wget. Now my Account is locked. I want my wget to alert that the Account is locked. How can i achieve this. My idea is, get the Source page html from the wget and look for the pattern "Account locked" and alert. I know this is not a fine solution. Looking a help from you. Please advise a command based solution. Thanks in advance (HowTos)