need help with a bash script
I'm trying to write a bash script so that when a user changes his password, the password is also stored into a mysql database. Whats the best way to do it?I don't have much experience writing bash scripts so any help is appreciated.