john pfeiffer
  • Home
  • Categories
  • Tags
  • Archives

Htpasswd add user script caller.sh

!/usr/bin/expect

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

spawn su htpasswdguardian -c "/webadmin/htpasswd-add-user.sh $username $userpass"

expect "Password:" send "THEPASSWORD\n"

interact


  • « Htpasswd add user.sh
  • Ftp create user.sh »

Published

Feb 6, 2010

Category

linux

~26 words

Tags

  • add 9
  • caller.sh 3
  • htpasswd 7
  • script 19
  • scripts 63
  • user 18