i have this problem.
i dont know how to call my .sh script from my C cgi script.
the sound chosen by user will be dynamically echoed, if user wanted to. Else send the original sound to user.
here is my code:
Expand|Select|Wrap|Line Numbers
- if(cgiGetValue("version") == "dynamic" ) {
- // call addecho.sh here with the WAV filename "train.wav"
- // output the result returned by addecho.sh to form a valid http response.
- } else {
- // output the original sound file to user.
- }
Expand|Select|Wrap|Line Numbers
- #!/bin/bash
- TEMP=`mktemp`
- #sox "../$1" -t wav "${TEMP}" chorus 0.6 0.9 50.0 0.4 0.25 2.0 -t 60.0 0.32 0.4 1.3 -s
- sox "../$1" -t wav "${TEMP}" echo 1.0 1.0 150.0 0.9 300 0.6 450 0.3
- cat ${TEMP}
- rm -f ${TEMP}
please help me out with the comment line above that i didn't know what to code.