![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum 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 |
| split bus mode | Arkayev | SUN Solaris | 18 | 07-31-2007 02:26 PM |
| How to run shell script in silent mode | x057373 | UNIX for Dummies Questions & Answers | 3 | 12-04-2005 04:26 PM |
| PASV mode FTP | jerardfjay | UNIX for Advanced & Expert Users | 5 | 10-13-2005 12:17 PM |
| PAM Vs Trusted mode in HP-UX | wilsonchan1000 | UNIX for Dummies Questions & Answers | 0 | 07-26-2004 03:58 AM |
| Interactive Mode? | Nomad | UNIX for Dummies Questions & Answers | 2 | 08-16-2002 03:59 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
|||
|
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 |
| Forum Sponsor | ||
|
|
|
|||
|
Yes I can create it. It looks like this:
user my_win_login pass my_win_password The script now looks like this: ftp win_server put file_name bye I run it as: sh my_script but it still asks for login name and password |