Search Results

Search: Posts Made By: bucketuk
1,864
Posted By bucketuk
Its OK. Thanks everyone. I've got it working...
Its OK. Thanks everyone.
I've got it working using a different script and its also adds the password to the user. :)
1,864
Posted By bucketuk
hell Monkey doughnut That was done using ...
hell Monkey doughnut

That was done using
#!/bin/bash
users=`mysql userList -uuserlist -puserlistpassword -s -N -e "SELECT userName FROM users WHERE activated='n'"`
echo $users

Cheers
1,864
Posted By bucketuk
Help with script to create users from database query
#!/bin/bash
user=`mysql userList -uuserlist -puserlistpassword -s -N -e "SELECT userName FROM users WHERE activated='n'"`
for i in $user; do
useradd "$i" -m
doneThis is what I have done so far....
Showing results 1 to 3 of 3

 
All times are GMT -4. The time now is 03:17 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy