LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Programming (https://www.linuxquestions.org/questions/programming-9/)
-   -   pass vars to application (https://www.linuxquestions.org/questions/programming-9/pass-vars-to-application-540765/)

kristof_v 03-26-2007 12:09 PM

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? :)

acid_kewpie 03-26-2007 12:37 PM

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.