john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Htpasswd add user.sh

!/usr/bin/expect

set timeout 1

set username [lindex $argv 0] set userpass [lindex $argv 1]

spawn htpasswd /webadmin/User.password $username

expect "New password:"

send "$userpass\n"

expect "Re-type new password:"

send "$userpass\n"

interact


  • « Htpasswd remote add user script caller.sh
  • Htpasswd add user script caller.sh »

Published

Feb 6, 2010

Category

linux

~30 words

Tags

  • add 9
  • htpasswd 7
  • scripts 63
  • user.sh 4