Up vote 0 down vote favorite share g+ share fb share tw.
I'm trying to use expect in an bash script to provide the SFTP password and put other commands. I'am try to get the return code of binary SFTP . My test script : #!
/bin/bash USER=$1 HOST=$2 PASSWD=$3 PORT=$4 FILEIN=$5 FILEOUT=$6 ACTION=$7 CR_FTP=`/usr/bin/expect " send "ls\r" expect "sftp>" send "$ACTION $FILEIN $FILEOUT\r" expect "sftp>" send "bye\r" EOF` echo " -------------------- $CR_FTP --------------------------" bash ssh sftp expect link|improve this question asked Apr 5 at 14:15damdr1.
... send "bye\r" expect eof set details wait puts "sftp exit status=lindex $details 3" EOF` See http://www.tcl. Tk/man/expect5.31/expect.1.html.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.