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 09-18-2007
mshv123 mshv123 is offline
Registered User
 

Join Date: Sep 2007
Location: NYC
Posts: 4
Script to ftp in non-ineractive mode

Hi,

I am relatively new to Unix. What I am trying to create now is a script to ftp some file(s) from Unix server to Windows ( not mine) machine. It should be able to run not in interactive mode, eventually I will schedule it to run at certain time intervals.

So far I have created the following script:

ftp windows_server_name
USER my_account_on_win_server
PASS my_password there
put dir_name/file_name
bye


However when I run it it behaves interactively, it asks me for user name and password on target machine anyway. My question is what should I change in this script to make it non-interactive ? My shell is ksh.

Thanks
Reply With Quote
Remove advertisements
!!
Forum Sponsor