Thanks for the reply.
But That is not the case
say i need to run the script OTP_Extract.sh that require some command line args eg -
$OTP_Extract.sh -v '" 0"' -m DAILY
-v is to passes " 0" to this. number of spaces around 0 are important.
But I need to run this by other script keeping all command OTP_Extract.sh and options -v '" 0"' -m DAILY in the command line args of other scritp ,say a.sh
I 'll use a.sh as -
$a.sh 'script and args'
and a.sh is like -
$cat a.sh
EXECUTE="$@"
ksh "${EXECUTE}"
The problem is that $@ doesn't pass 'script and args' properly if it have single quotes in between . I've tried escaping by back slash , but it doesn't work.
What I need is that If I echo $EXECUTE I shoud get -
say i need to run the script OTP_Extract.sh that require some command line args eg -
$OTP_Extract.sh -v '" 0"' -m DAILY
-v is to passes " 0" to this. number of spaces around 0 are important.
But I need to run this by other script keeping all command OTP_Extract.sh and options -v '" 0"' -m DAILY in the command line args of other scritp ,say a.sh
I 'll use a.sh as -
$a.sh 'script and args'
and a.sh is like -
$cat a.sh
EXECUTE="$@"
ksh "${EXECUTE}"
The problem is that $@ doesn't pass 'script and args' properly if it have single quotes in between . I've tried escaping by back slash , but it doesn't work.
What I need is that If I echo $EXECUTE I shoud get -