6

Pass variable to SFTP

view full story
linux-howto

http://www.unix.com – Hi All, I am using SFTP command to transfer the file. Code:   SRC=`pwd` DIG=123   /bin/sftp -B /dev/stdin [email protected] <<:: mput ${SRC}/GGG.${DIG}.tar.gz bye :: The problem is, after entring into sftp command, it is not taking variable values of SRC and DIG. can someone help me what is the other way. I tried to write a SFTP command in a seperate file and used that file with -B option in sftp command, but it is not supporting. (HowTos)