|
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
|