ftp commands in shell script
hi all........
ftp localhost ls quit i am trying to run above script ... when i try to run it will ask for passwd and it will login correctly... but in ftp> prompt ls and quit is not executing ...can anyone help me please.... Thanks in advance |
You have to pass ftp commands as standard input to the ftp statement. Use a "here document" like in the following example:
Code:
ftp -ni host << EOF > /dev/null |
may i suggest scp
|
Quote:
|
All times are GMT -5. The time now is 03:42 PM. |