The UNIX and Linux Forums  


Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




Thread: useradd
View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 08-27-2007
anchal_khare anchal_khare is offline
Registered User
  
 

Join Date: Jun 2007
Location: Mumbai,India
Posts: 325
u can pass the password as an environment variable if u dont want to hardcode them.

define all the variable in another file
and just execute the following command.

. /path/passwords.txt

ur password.txt may contain

user=myuser
password=mypassword

use $user and $password in ur orignal script.



Anchal