#!/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 "]#"

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



### ####################### LOAD THE PHP PAGE FOR FURTHER CONVERSION AND TRANSCRIPTION:

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 -f /var/www/html/_other/tube-to-text.com/_admin/transcription_engine_slave.nsdb ${transcription_hash}"


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



exit





