!/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
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