1827476 Members
2111 Online
109965 Solutions
New Discussion

sftp script

 
Taulant Shamo
Frequent Advisor

sftp script

Hello,

could anyone help me giving "sftp script" to run in HP-UX.

Thanks
Taulant
4 REPLIES 4
Rick Garland
Honored Contributor

Re: sftp script

an sftp script to do what?
Steven E. Protter
Exalted Contributor

Re: sftp script

PASSWORD=
filename=filetoget

sftp username@192.168.0.10 >> EOF
$PASSWORD
cd /tmp
get $filename
EOF


Its pretty similar to an ftp script accept some commands like binary/ascii are not available. sftp is smart enough to figure this out itself.

http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=808799

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Taulant Shamo
Frequent Advisor

Re: sftp script

Thanks
Taulant