Unable to pass parameter via curl URL

Hi,

I want to pass parameter using curl url method with php. When I try to do so it is sending string value instead of parameter.
Please help to correct this.

cd /home/la/billing/ussd/

u=date --date='-1 day' +"%Y%m%d"

echo $u

b=grep 'unavail' ussdbil_$u*|grep '*121' |wc -l

echo $b
#######up to this everything works fine########

curl ‘http://192.168.11.11/replaceme/http/devK/uuu/testsms.php?SOU=123&MSG=$b&MSISDN=012345

exit 0

Sponsor our Newsletter | Privacy Policy | Terms of Service