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



Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
passing values from sql to shell script sachin.gangadha Shell Programming and Scripting 3 04-22-2008 11:11 PM
primary-secondary sync problem mbannout UNIX for Advanced & Expert Users 0 04-15-2008 05:52 AM
Passing Values from a shell script dhananjaysk Shell Programming and Scripting 6 04-06-2006 09:33 AM
Passing Parameters and getting values back from a c program to Shell script Rajeshsu High Level Programming 5 08-22-2005 03:12 AM
How to find All Primary and Secondary Group ID's for a user sanjay92 UNIX for Dummies Questions & Answers 2 03-27-2002 02:35 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #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
  #2 (permalink)  
Old 07-03-2008
mirusnet's Avatar
mirusnet mirusnet is offline
Registered User
  
 

Join Date: Dec 2007
Posts: 146
Create a file with environment variable and include it to both files.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 06:38 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0