thanks for your help thomas.
As i could not get it to work with shell scripting i did try it on PHP.
## code ##
for ($i = 1; $i <= 92; $i++) {
$random_password = makeRandomPassword();
$sql = "update random set password = '$random_password' where id = $i";
$q = $db->query($sql);
}
## code ##
than
--- Louie Miranda <[EMAIL PROTECTED]> wrote: > #!/bin/bash
> GEN=`pwgen --no-capitalize -N1`
> for i in $GEN
> do
> echo "update dump set random= '$i'"|mysql -uroot insert
> done
>
> --
>
> I have created this shell script, it updates a specific table on a
> mysql db. Now, the pwgen is a random p
#!/bin/bash
GEN=`pwgen --no-capitalize -N1`
for i in $GEN
do
echo "update dump set random= '$i'"|mysql -uroot insert
done
--
I have created this shell script, it updates a specific table on a
mysql db. Now, the pwgen is a random password generator. When i run
this program, it only gets 1 variable
3 matches
Mail list logo