hello guys,
I have a program which you invoke like:
qtpasswd username
then it asks for password, and then to confirm password..
I wanted to create a korn shell script which I will send the username AND password and it excutes that script (All i want is one line, so i can excute it via php shell_exec)..
thanks for any ideas,
currently I have:
PHP Code:
if [[ $# < 2 ]]
then
print "Username and/or password not given"
print "===========EXITING================"
exit
fi
qtpasswd $1
$2
$2
but then it waits for the password, and then excutes the password..
anyway to tell it to take the $2 as the pasword and confirmation..
Thanks again,