pass vars to application
hi,
I'm creating a shell script that asks the user for a username and a passwd. these values are then stored in $USERNAME and $PASSWD Then I want to run the following tool to create a pure-ftp user: pure-pw useradd <user> .. pure-pw useradd then prompts two times for a password. now what I want to do is to pass the $USERNAME and $PASSWD to pure-pw useradd so that it uses these values. But how do you do this? :) |
if there really is no other way to supply a password, then you can use expect to read the questions / prompts and reply accordingly.
|
All times are GMT -5. The time now is 03:16 PM. |