The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #1 (permalink)  
Old 01-10-2009
OrlandoRost OrlandoRost is offline
Registered User
  
 

Join Date: Jan 2009
Posts: 3
FTP. Autoconnection

Hello, all!

How can I use ftp commands for autoconnection to ftp-server from from UNIX script?
Shell is sh.
I have login and pass (I should connect not as anonymous).
By this time I have tried the next (Server-name is ftp:\\serv.com, user is 'user' and pass is 'pass').

1. ftp -P serv.com user pass
answer is: '-P unknown option.'
But I got it from man ftp.
Strange...

2. ftp serv.com user pass
anser is: 'usage: ftp host-name [port]'.
and etc...

I'm not advanced in UNIX, so, sorry for stupid questions
Please, feel free to ask me if need

Thx. a lot!