#!/usr/bin/expect
set transcription_hash [lindex $argv 0];
set youtube_video_id [lindex $argv 1];


# spawn ssh root@74.81.189.3 -p 6732
# #expect "(yes/no)?"
# #send "yes\r"
# expect "assword:"
# send "bangk!20120710"
# send "\r"
# expect "]#"


spawn php /var/www/html/_other/tube-to-text.com/_admin/transcription_engine_slave_v3.nsdb ${transcription_hash}

# send "/usr/bin/wget -q -O /var/www/html/_other/tube-to-text.com/_logs/transcription_engine_master.txt http://tube-to-text.com/_admin/transcription_engine_slave.nsdb?hash=${transcription_hash}"


# send "php /var/www/html/_other/tube-to-text.com/_admin/transcription_engine_slave_v3.nsdb ${transcription_hash}"




send "\r"
expect "]#"
send "\r"
expect "]#"



exit





