The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
Google UNIX.COM



View Single Post in UNIX Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 11-26-2007
pranavagarwal pranavagarwal is offline
Registered User
 

Join Date: Oct 2007
Location: India
Posts: 28
Exclamation SFTP from windows E:/ to unix server

Hello All ,

I am making a script in the ksh to Secure FTP a set of files from the E:/ drive in windows a computer to a unix server.

Had it been in the unix directory, I could have used the expect utility to use the non-interactive mode for sftp,

Code:
#!/usr/local/bin/expect
#!/bin/ksh

spawn sftp -b user@11.11.11
expect "password:"
send "password"

cd /export/home/direc1
lcd /home/direc2

ascii

get new1
quit
or used public key encryption.

But, the file is in the windows directory. How do I get that file?
Reply With Quote
Remove advertisements
!!
!! Forum Sponsor