FTP Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsSystem AdministrationFTP Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old January 22nd, 2013, 01:09 PM
RodrigoDS RodrigoDS is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Posts: 1 RodrigoDS User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 10 m 15 sec
Reputation Power: 0
FTP Missing files

Hi guys.
I need a help. I have a process that a copy a couple of files to my customer FTP in each workday hours.
But, sometimes, my customer says that I didn't copy this file to the FTP and I have all log in my system that I copied the file. My customer doesn't belive in my log. He thinks that my system has a problem.
My question is: is there a safety way to copy the files to FTP folders and make sure that they were there?
I think that could be a problem in their system. He can copy 1 file and delete the others one, for example.

tks.

Reply With Quote
  #2  
Old January 27th, 2013, 05:05 AM
maz007 maz007 is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jan 2013
Location: Dubai
Posts: 5 maz007 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 27 m 25 sec
Reputation Power: 0
Yeah, I guess there is a problem these days. Faced issue same like this some days ago.

Reply With Quote
  #3  
Old January 27th, 2013, 02:20 PM
spacebar208's Avatar
spacebar208 spacebar208 is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Apr 2012
Location: spaceBAR Central
Posts: 191 spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level)spacebar208 User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 2 Days 9 h 59 m
Reputation Power: 41
In your ftp script you could do a 'ls' for each file you transferred which will prove/disprove the file(s) exists on target host, For example:

Code:
$ cat test_ftp.sh

# test_ftp.sh
ftp -vn xxx.yyy.com <<ENDSCRIPT >>/tmp/list.txt
user zzzzz password
cd /tmp
lcd /tmp
put test.txt
ls test.txt
quit
ENDSCRIPT

$ cat /tmp/list.txt

Connected to xxx.yyy.com.
220-Warning: Authorized Personnel Only. All activities are monitored
220-
220 xxx.yyy.com FTP server ready.
331 Password required for zzzzz.
230 User zzzzz logged in.
250 CWD command successful.
Local directory now /tmp
200 PORT command successful.
150 Opening ASCII mode data connection for test.txt.
226 Transfer complete.
local: test.txt remote: test.txt
1262 bytes sent in 0.0013 seconds (969.72 Kbytes/s)
200 PORT command successful.
150 Opening ASCII mode data connection for file list.
test.txt
226 Transfer complete.
remote: test.txt
10 bytes received in 0.00024 seconds (40.61 Kbytes/s)
221-You have transferred 1262 bytes in 1 files.
221-Total traffic for this session was 1898 bytes in 2 transfers.
221-Thank you for using the FTP service on xxx.yyy.com.
221 Goodbye.

Reply With Quote
Reply

Viewing: Dev Shed ForumsSystem AdministrationFTP Help > FTP Missing files

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap