simple htpasswd check logs script.
I have a script that runs a last of usernames and passwords though and htpasswd command - i output the stdout to a log file which is hundreds of thousands of line long.
Code:
/usr/local/apache2/bin/htpasswd -b $file $user $pass Code:
Adding user: unknownl like if there is an Code:
"Adding user: $user" there must be complemented with a line right after it that says: Code:
Adding password for user $user If the two lines do not follow that format - there must be some error. I tried using backreferences in perl, but I am drawing a blank. Does anyone have any ideas on how i could approach this. |
Have a look at this:
Code:
#!/bin/bash Code:
$ cat infile |
it may not be perfect - but it will lead me in the right direction.
i am the only one who can coade anything in this office. i have no access to chat or irc. no body to bounce things off of - this i will lead me in the right direction. all i need is a push, thanks; |
Quote:
If you run into anything or have questions about the above script; Just ask. |
All times are GMT -5. The time now is 11:21 PM. |