![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
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! |
|
||||
|
Still the same result is: 'usage: ftp host-name [port]'
Code I used is bellow: ftp -n <<EOF open ftpserver.com user myuser mypass EOF I just wanted to connect to the server without file transfer... Is 'put file to ftp' important action in this situation? Many thx., Jim! |
|
||||
|
Yes, I need to transfer file to server in farther.
But now I just trying to create connection from command line by one command string. If I do it then I will create a script with file transferring. The problem is not in file transfering but in autoconnection. In interaction mode I login to server and transfer files successfully and now I just want to automatize it. ![]() That's all. ![]() Many thx! |
| Sponsored Links | ||
|
|