Skip to content

Instantly share code, notes, and snippets.

@memorycraft
Created September 21, 2011 08:20
Show Gist options
  • Save memorycraft/1231550 to your computer and use it in GitHub Desktop.
Save memorycraft/1231550 to your computer and use it in GitHub Desktop.
#!/bin/sh
i=0
while ((1))
do
name=$(uuidgen | tr -d '-')
desc=$(mkpasswd -l 1000)
mysql -u xxxxxxx cloudpack -pxxxxxxxxxxxxx -e "INSERT INTO gift(name, description,created_at) VALUES('${name}', '${desc}', NOW());"
echo "."
sleep 1
done;
exit 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment