![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Rules & FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts here. |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Passwordless sftp from UNIX to windows site | konark | Shell Programming and Scripting | 2 | 03-24-2008 10:36 AM |
| how to get multiple files using sftp from a windows server | ramky79 | SUN Solaris | 0 | 03-02-2008 10:15 AM |
| SFTP files from windows drive E: to unix | pranavagarwal | UNIX for Dummies Questions & Answers | 4 | 11-26-2007 05:17 AM |
| SFTP file from unix box to a NT server | queenie680 | UNIX for Dummies Questions & Answers | 5 | 11-12-2007 02:41 PM |
| SFTP from UNIX (AIX) to Windows 2000 server | reddymails | Shell Programming and Scripting | 0 | 03-09-2006 05:15 AM |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
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 But, the file is in the windows directory. How do I get that file? |
| Forum Sponsor | ||
|
|
|
|||
|
Quote:
Quote:
How are the file systems mapped between Windows and UNIX? We know very little about your environment unless you tell us. |
|
|||
|
Quote:
The login credentials I have, have been configured for ftp connectivity. So? I can still help you with some more info.. Code:
/export/home/pranav> ftp -inv ftp> open hostname Connected to hostname. ftp> user username P@ssword 331 Password required 230 user logged in ftp> pwd 257 "/" is current directory ftp> ls 200 command successful 150 Opening ASCII data connection for directory listing Listen acd01jax.itf ACD01PHL.itf ACD01PHL.OLD Listen_configuration.ini Stream1 Stream10 Stream11 Stream12 Stream13 Stream14 Stream15 Stream16 Stream17 Stream18 Stream19 Stream2 Stream20 Stream21 Stream22 Stream23 Stream24 Stream25 Stream26 Stream27 Stream28 Stream29 Stream3 Stream30 Stream31 Stream32 Stream33 Stream4 Stream5 Stream6 Stream7 Stream8 Stream9 xx.xx 226 transfer complete I don't understand the output of 'ls'. If anybody can throw some light on where is this '/' that i get with 'pwd'. Any ideas will be appreciated. thanx Edit: I confirm here that there is no unix installation on the remote server. Last edited by pranavagarwal; 11-27-2007 at 08:10 AM. Reason: Confirmation |
|
|||
|
Quote:
(a) do a file search for some of the name files given in the listing. (b) go to the control panel and find the panel that configures the ftp server. and also you are using "ftp", not "sftp" as you mentioned in your original post. |
|
|||
|
Well, will try this and get back here soon.
Good Day! I showed ftp here just for simplicity's sake. |
|||
| Google UNIX.COM |