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 > Shell Programming and Scripting
.
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 07-03-2008
venu_eie venu_eie is offline
Registered User
  
 

Join Date: Aug 2007
Posts: 5
Passing the values to the secondary script when it invoked by primary script

Hi,

When I invoke a script s1.sh it will call an another script s2.sh by itself. This script s2.sh will call some java files, so while running the script it asks for a file name to be processed. Which we can see in the screen.

The file name to be processed is present in script s1.sh

Now I need this script s1.sh to give the file name on the screen so that
script s2.sh will pick up that and continue the process.

Below are the details how does it works.

/users/venu> sh s1.sh
--script 2 is called--
Enter ur file name:


In the above statement 'Enter ur file name:' is asked by script 2 which is called internally by script 1.

Please any one tell me how to process the file name which is there in script s1 to the sxpected place 'Enter ur file name:'.

Regards
Venu