Skip to main content

Running .sh script in auto provisioning command line

Posted by diffen on Sat, 05/05/2012

Hello,

I have built a provisioning feature for Grandstream GXP 2000.

[grandstream-gxp2000]
label=Grandstream GXP 2000
lines=4
phone_template=gsgxp2000_phone.cfg
line_template=gsgxp2000_line.cfg
blf_template=gsgxp2000_blf.cfg
speeddial_template=gsgxp2000_speeddial.cfg
input_1=gsgxp2000_settings.cfg
output=gsgxp2000_${MAC}
command_1=/usr/local/src/GS_CFG_GEN/bin/encode.sh ${MAC} gsgxp2000_${MAC} cfg${MAC}

My problem is that i need the server to run the encode.sh script to create the .bin file. It doesnt seems to run it since the output from it is 0. The line works since i can run it directly in the cli of the server.

Anyone have any clue?

Br

Jörgen