Passing string as a single argument in shell script
hi,
i have a shell script as follows, which takes two arguments.
###################################
FILE=$1
FOLDER=$2
APPUSER=jboss
#do something...
mypython.py 'sh myscript.sh /home/abcd/$FOLDER/$FILE'
###################################
what i want is, mypython.py (see the line above) should get the remaining portion as a single argument. As i am giving 'sh myscript.sh /home/abcd/$FOLDER/$FILE' within singlequotes, the $FOLDER and $FILE is not taking the original value.
If i am removing the single quote, then, 'sh' is taken as first argument, 'myscript.sh' is taken as second argument, and so on...
|