Visit Our UNIX and Linux User Community

File uploaded via FTP not visible from Command Line

Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers File uploaded via FTP not visible from Command Line
# 1  
Old 05-30-2011
Question File uploaded via FTP not visible from Command Line

I am using VSFTPD on amazon web services and have a remote service that uploads files to server via FTP. The files comes through fine and when I log in via FTP client I see them. The problem is the files are supposed to be moved once uploaded but the files are not visible via command line thus the mv command doesn't work. I tried numerous variations of ls (various arguments) and although I get the correct directory count but nothing shows any of the files. I tried as root, I tried as the ftp user, I changed file permissions to 777 via FTP client...nothing works. This is entirely bizzare.

This is on Ubuntu btw.
# 2  
Old 05-30-2011
You have several possibilities

1. the directory you are ftp-ing into does not allow the process to write files, example you have the nobody account as the ftp user.

2. the files are not going where you think they are going - try using the find command

3. the ftp code you wrote has an error -example: one of the env variables is null.

4. You log on as anonymous, and the files went some really strange place.

There are loads more possibilities. You have to work backwards to fix the problem:

Start by using find to locate one of the files. You need a defiinite name so you don't have to look at partial matches. Assume one of the file names is "download.txt"

find / -type f -name download.txt -exec ls {} \; 2>/dev/null

This User Gave Thanks to jim mcnamara For This Post:
# 3  
Old 05-30-2011
It wasn't going where I thought it was

Yep..that was the error. I thought it was going to /home/ubuntu/downloads but it turns out it was going to /home/ubuntu/home/ubuntu/downloads
The FTP client put me in /home/ubuntu and I couldn't go up so I thought I was navigating from / but I was instead going from /home/ubuntu/


Previous Thread | Next Thread
Test Your Knowledge in Computers #194
Difficulty: Easy
Perl was ranked in the top 10 according to the TIOBE Index for October 2019.
True or False?

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

FTP command-line utility usage

Hi, Using command-line utility "ftp or sftp", I want to transfer files across Windows and UNIX. Can you please tell me from where I need to connect to ftp and how do I specify the hostname, credentials and how do I get and put files between DOS and UNIX? Please provide me as much... (10 Replies)
Discussion started by: Dev_Dev
10 Replies

2. UNIX for Advanced & Expert Users

Entire Input command not visible in Unix prompt

Hi, While typing the Unix command, entire command is not visible.When the input command is long, it is not visible. I want the entire command to be displayed when i type it. Please help to resolve this issue. Thanks Sampath (7 Replies)
Discussion started by: sampath.giri
7 Replies

3. OS X (Apple)

Where are package contents stored for a file, or why aren't they visible w/o right clicking the file

I was wondering about the "Show Package Contents" option in OS X. I have a keynote file that I'm looking at. Exactly where are these contents or its directory stored, because they aren't visible in the Finder window, unless I obviously right click and choose to view them. And I don't think I can... (2 Replies)
Discussion started by: Straitsfan
2 Replies

4. Shell Programming and Scripting

FTP command line username and password passing

Dear All, I am new to unix and I am trying to build a shell script which will connect to a different server by passing username and password from a file or command line but not manually... In short I dont want to connect to a diff server via ftp interactively. Any suggestion...looking... (8 Replies)
Discussion started by: Pratik4891
8 Replies

5. Shell Programming and Scripting

one line command to check file existence and FTP it

Hi all, I need a batch script to Check for existence of file say i check for files with extension xml.done in C:\Myfile.(This folder contains .xml file and its corresponding .done files) If the .done file exists then it should FTP the corresponding .xml file to UNIX. Is this possible to do... (6 Replies)
Discussion started by: Codesearcher
6 Replies

6. UNIX for Dummies Questions & Answers

Uploading a Directory via FTP in the Command Line

Hello, Is there a way to upload a directory via ftp in the command line in a single line? I'd be looking for something like this: ftp -username me -password 12345 /Users/me/mywebsitefolder /publichtml/ But I can't figure out the proper syntax. Thank you for any help. -Grey (1 Reply)
Discussion started by: wellington_grey
1 Replies

7. Shell Programming and Scripting

How to make sure a file is uploaded in its entirety

Hi, I have a client who uploads files to my FTP server on a regular basis. Instead of checking the server all the time, I wrote a script that e-mail me to let me know that there is a new file and attaches is it in the e-mail (they're all small compressed archives). The potential issue with the... (4 Replies)
Discussion started by: ph0enix
4 Replies

8. Shell Programming and Scripting

Get Files from ftp which are uploaded recent week

Hi All, Here is a brief scenario for my requirement .. There is a directory in FTP Server, where would files be uploaded on weekly basic. I need to get those files which are uploaded during this week and not the files which are uploaded the previous week and download them to locale... (1 Reply)
Discussion started by: narramadan
1 Replies

9. UNIX for Advanced & Expert Users

Command line FTP Client

I'm looking for a FTP client that is similar to NCFTP in that I can run a full ftp command in one line without needing to access the client first then typing the ftp commands. Very simple request but I can't find any other tool like that, I have downloaded Kermit thinking I can use it to tranfer... (3 Replies)
Discussion started by: tamkag
3 Replies

10. UNIX for Dummies Questions & Answers

ftp command line client

Hi! Does anyone of you know another good ftp command line Client like Midnight Commander? (not /usr/bin/ftp) Thanks. (5 Replies)
Discussion started by: donald1111
5 Replies

Featured Tech Videos