John Squared
New Member
- Joined
- Jan 25, 2016
- Messages
- 8
- Reaction score
- 0
Hello,
I'm hopijng someone can explain to me how I would go about running the following command (python) to run in bash in it's own process and set it to run X amount of times?
exten => s,n,System(gvoice -b -e ${GVACCT} -p ${GVPASS} send_sms ${SMSNUM} "${utterance}")
I've tried things like the following but still can't understand how this is done:
exten => s,n,System(n=0; while [[ $n -lt 2 ]]; do gvoice -b -e ${GVACCT} -p ${GVPASS} send_sms ${SMSNUM} "${utterance}"; n=$((n+1)); done)
exten => s,n,System(run -n 2 'gvoice -b -e ${GVACCT} -p ${GVPASS} send_sms ${SMSNUM} "${utterance}"')
Basically I just want to have pygooglevoice run my command twice so that two text messages are send instead of just one.
Any and all information will be greatly appreciated. Thanks!
I'm hopijng someone can explain to me how I would go about running the following command (python) to run in bash in it's own process and set it to run X amount of times?
exten => s,n,System(gvoice -b -e ${GVACCT} -p ${GVPASS} send_sms ${SMSNUM} "${utterance}")
I've tried things like the following but still can't understand how this is done:
exten => s,n,System(n=0; while [[ $n -lt 2 ]]; do gvoice -b -e ${GVACCT} -p ${GVPASS} send_sms ${SMSNUM} "${utterance}"; n=$((n+1)); done)
exten => s,n,System(run -n 2 'gvoice -b -e ${GVACCT} -p ${GVPASS} send_sms ${SMSNUM} "${utterance}"')
Basically I just want to have pygooglevoice run my command twice so that two text messages are send instead of just one.
Any and all information will be greatly appreciated. Thanks!