Quit FTP issue


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Quit FTP issue
# 1  
Old 12-16-2011
Quit FTP issue

Hey,

same problem. i want to check if files have been successfuly transferred after getting them back, but after I quit the ftp, nothing gets executed.

Difference from original post is that I get 226 and 221 feedbacks from the server.

Code:
226 Transfer complete.
2409 bytes received in 0.0086 seconds (2.7e+02 Kbytes/s)
221

My checking is using 'diff'.
# 2  
Old 12-16-2011
@fpflug
This thread started in August. Please open your own thread - and paste your code.
# 3  
Old 12-16-2011
Is it possible to use scp or sftp instead of ftp? This sort of undefined and unpredictable behavior is only one of many reasons I wouldn't encourage people to script any FTP transfers.
# 4  
Old 12-16-2011
FTP is entirely predictable. It is just very difficult to write good script to cover every eventuality (including a ftp transfer taking too long). The same issues apply to "scp" to a certain extent.
The main use for FTP nowadays is for file transfers to/from Microsoft platforms when it is not possible or economical to configure a better method. Getting Microsoft FTP working is itself hard work.

Anyway the O/P in this thread was clearly trying to get data from a web server.
# 5  
Old 12-16-2011
Please do not ask new questions in existing threads. Unless you have new information to a particular problem, please create a new thread in the appropriate forum.


The UNIX and Linux Forums
# 6  
Old 12-16-2011
@fpflug
Please post the script which is failing.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. IP Networking

Issue with FTP?

HI Guys, Issue:: While doing bye command on ftp, it just hings as below untill you try Ctrl+C 891 bytes received in 0.0017 seconds (526.16 Kbytes/s) ftp> bye 221-You have transferred 0 bytes in 0 files. I too have tried with other commands like, close, disconnect etc but no luck. ... (1 Reply)
Discussion started by: Atp3530
1 Replies

2. UNIX for Advanced & Expert Users

Ftp issue

Hi we are facing an issue on our server our job connects to a target server and pulls the file from a location .But it is taking too much time to do this . Hwne i manully do the ftp it finished in few seconds .but when the jobs is pulling it is taking 30 to 40 min . please see the log... (1 Reply)
Discussion started by: ptappeta
1 Replies

3. Shell Programming and Scripting

FTP script - 'quit' never executes

I have wrote a script to get a very large encrypted file from a remote ftp server to a local debian box. The file downloads successfully, but the script never exits, or quits. None of code executes after the ftp get command. The file is approx 291M Here is the code: !/bin/sh... (3 Replies)
Discussion started by: jstrahm
3 Replies

4. UNIX for Dummies Questions & Answers

FTP Issue

Hi all, iam trying to connect to a ftp site in putty by using the follwing command . ftp URLname. I get the below error ftp: usftp.ABC.com: unknown host. Iam able to connect to the same site through windows commandline. Can anyone put your thoughts on what might be the issue?. ... (2 Replies)
Discussion started by: swathich
2 Replies

5. Solaris

FTP issue

Hi guys, I have a jumpserver that I connect to in order to connect to my SOLARIS boxes. I cannot connect directly. I used a remote terminal server and from there putty to the servers. That is OK. My only problem is when I need to FTP something to it. I have found no way to do that. Any... (4 Replies)
Discussion started by: 300zxmuro
4 Replies

6. Shell Programming and Scripting

Issue with ftp

Hi friends, in one of the script i am doing ftp from solaris to a windows machine. From there i wll cd to specific directory. Now, let's say the directory is not there, then the cd command will fail. So, how i wll get to know here(in the unix box) that the command has failed. Thanks (3 Replies)
Discussion started by: tarakant
3 Replies

7. IP Networking

FTP issue

Hello all, FTP times out when I transfer large files. Small files get transffered fine. small files -------- -bash-3.1$ ftp -i cldevoradb01 Connected to cldevoradb01.enterprisenet.org. 220 (vsFTPd 2.0.5) 530 Please login with USER and PASS. 530 Please login with USER and PASS.... (4 Replies)
Discussion started by: luft
4 Replies

8. UNIX for Dummies Questions & Answers

If FTP cron job fails to connect = quit

Im having a problem with my ftp CRON jobs. I have another related (but not the same question in shell scripting). My FTP CRON jobs connect to a server and drop some files off, if for some reason it cannot connect to the server (timesout/password wrong etc) instead of stopping, it tries again... (3 Replies)
Discussion started by: mokachoka
3 Replies

9. Shell Programming and Scripting

Executing statements after quit in FTP.

In my shell script I am doing FTP along with other process. But all the statements after the "quit" command in FTP are not getting executed. Example: echo "This is a shell script to FTP a file" #ftp -inv <server name> <<eol>> <logfilename> #user <userid> <password> #put <filename> #quit... (2 Replies)
Discussion started by: dharmesht
2 Replies
Login or Register to Ask a Question