The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 03-09-2009
coolkid coolkid is offline
Registered User
  
 

Join Date: Jan 2008
Posts: 69
Passing values from one file to another file

Hi all
I need some help to pass the values from one shell script to another ,so that the other script uses those values

For Ex:
File1.sh
echo "Enter user[admin]:"
read answer
echo "Enter password for [$answer]:"
stty -echo
read passwd
stty echo

File2.sh
This file should use those values that are stored in $answer and $passwd.Is that possible.

Please let me know

Thanks
CK