|
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
|