The UNIX and Linux Forums  

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 03-19-2009
bce_groups bce_groups is offline
Registered User
  
 

Join Date: Mar 2009
Posts: 7
Invoking 2 scripts in 1 command

HI,
I have 2 scripts main.sh and sub.sh, I want to invoke both these scripts in 1 unix command..
Something like... csh -f main.sh(sub.sh TIBCO)
sub.sh returns a value as .., by taking this value main.sh prints a text.
Can anyone help me to build this command
Below are the scripts
////sub.sh
#! /usr/bin/csh
set VAR_NAME=$1
eval echo \$$VAR_NAME

////main.sh
#! /usr/bin/csh
set VAR_NAME=$1
echo printing the value $VAR_NAME

Thanks in advance