go-lang (#1)
Reviewed-on: phoenix/twilio_sender#1 Co-authored-by: kdeng00 <kundeng94@gmail.com> Co-committed-by: kdeng00 <kundeng94@gmail.com>
This commit is contained in:
Executable
+31
@@ -0,0 +1,31 @@
|
||||
#!/usr/bin/bash
|
||||
|
||||
|
||||
root_dir="/home/phoenix/programming/python/experiments/twilo_demo"
|
||||
|
||||
echo "Root directory: $root_dir"
|
||||
|
||||
if [[ ! -d "$root_dir" ]]; then
|
||||
echo "Root directory does not exist. Exiting"
|
||||
exit
|
||||
fi
|
||||
|
||||
config_path="twilio_details.json"
|
||||
numbers_part="60"
|
||||
numbers_path="numbers/numbers-$numbers_part.json"
|
||||
# numbers_path="numbers/test_number.json"
|
||||
type_message="json"
|
||||
messages_path="messages/message-$numbers_part.json"
|
||||
send_message="True"
|
||||
|
||||
echo "Changing directory to $root_dir"
|
||||
cd $root_dir
|
||||
|
||||
# source env/bin/activate
|
||||
# echo "Activated virtual environment"
|
||||
|
||||
# Old
|
||||
# python main.py "$numbers_path" "$type_message" "$messages_path" "$send_message"
|
||||
./twilio_sender "$config_path" "$numbers_path" "$messages_path"
|
||||
|
||||
echo "Done"
|
||||
Reference in New Issue
Block a user