LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-13-2006, 06:55 PM   #1
Singist
LQ Newbie
 
Registered: Mar 2006
Location: England
Distribution: RedHat 9
Posts: 16

Rep: Reputation: 0
Unhappy cant put or get files in ftp


Hi all,
when i try to get or put files via ftp from linux to linux, i gain access with login password etc, but it keeps telling me that there is no such file or directory when there clearly is. i have taken passive mode off but makes no difference. ls command clearly shows the file on the remote system so using get should place that file on the local machine. the response i get back is 550 processesthe name of the file im trying to get)No such file or directory.
Any help would be great as i'm spending far too many hours on it. Thanx
Singist
 
Old 03-13-2006, 08:34 PM   #2
zidane_tribal
Member
 
Registered: Apr 2005
Location: chained to my console.
Distribution: LFS 6.1
Posts: 143

Rep: Reputation: 18
hmmm, this may sound silly, but check the case of the filename. linux is case sensitive, so FiLe is not the same as file.

you might also want to check permissions on the file, make sure you can actually read it.

does the filename have things like spaces in it, or other special characters? most ftp clients, when they see 'get this file.txt' will thingk you mean 'get this', if your filename does have spaces, you can use a quotations, like 'get "the file.txt"'
 
Old 03-14-2006, 02:55 AM   #3
Singist
LQ Newbie
 
Registered: Mar 2006
Location: England
Distribution: RedHat 9
Posts: 16

Original Poster
Rep: Reputation: 0
The filename in question is called processes, ive checked the case from system to system and it has the permissions set to 600, there are no spaces in the filename and in case you're wondering why it isn't processes.txt, i changed it to see if it would make any difference but to no avail.
Thanx for replying
A stressed out Singist
 
Old 03-14-2006, 05:15 AM   #4
zidane_tribal
Member
 
Registered: Apr 2005
Location: chained to my console.
Distribution: LFS 6.1
Posts: 143

Rep: Reputation: 18
curiouser and curiouser. can you get any file from the remote machine via ftp?
 
Old 03-14-2006, 06:38 AM   #5
Singist
LQ Newbie
 
Registered: Mar 2006
Location: England
Distribution: RedHat 9
Posts: 16

Original Poster
Rep: Reputation: 0
now you come to mention it, no i can't. just tried several files that i created on the fly but it dodnt work. This is somewhat bizarre.
Singist <close to the window..lol>
 
Old 03-14-2006, 06:47 AM   #6
nx5000
Senior Member
 
Registered: Sep 2005
Location: Out
Posts: 3,307

Rep: Reputation: 57
can you make a "ls" or "dir"
?
If no open the window

edit:forget my post, I will learn to read one day ;-)

Last edited by nx5000; 03-14-2006 at 06:52 AM.
 
Old 03-14-2006, 07:13 AM   #7
Singist
LQ Newbie
 
Registered: Mar 2006
Location: England
Distribution: RedHat 9
Posts: 16

Original Poster
Rep: Reputation: 0
yes i can ls, pwd etc...however when i put the file across to the remote machine..it was successful, but when i checked the contents of each file on local and remote..the content is completley different
A bewildered Singist, <shuffles pc's nearer to the window>
 
Old 03-14-2006, 07:16 AM   #8
Singist
LQ Newbie
 
Registered: Mar 2006
Location: England
Distribution: RedHat 9
Posts: 16

Original Poster
Rep: Reputation: 0
i actually want the disc usage stats that cron is redireting to a text file. this text file is what im, trying to 'get'. im using a here file to grab it via ftp....gets as far as making the connection, but then it says file or directory does not exist.<shrugs shoulders>
 
Old 03-14-2006, 07:26 AM   #9
zidane_tribal
Member
 
Registered: Apr 2005
Location: chained to my console.
Distribution: LFS 6.1
Posts: 143

Rep: Reputation: 18
so, you are able to connect, to view directories and their contents, but if you put a file, it comes out mangled, and if you get a file, it doesnt work at all?

this is very unusual to say the least....

as for putting the file... are you sure your transferring it in the right mode? (ascii or binary)... it sounds like a lame answer, because i really cant think of anything else that would cause that.

to be honest, im clutching at straws. this certainyl seems very very unusual. but perhaps there is another way. rather than using here files and ftp, why not use wget, it can grap things from ftp's.

eg: a script to use wget to grab a file from an ftp and then cat it.

Code:
#!/bin/bash

#use wget to grab an ftp file
wget ftp://username:password@my.ftp.com/path/to/processes

#cat the local file
cat ./processes
try it with wget, and see if that works, wget seems to be a little more resiliant to strangeness than ftp and here files when scripting (at least, in my experience anyways)

(and if this doesnt work, push the pc out the window, its been asking for it )
 
Old 03-14-2006, 07:44 AM   #10
Singist
LQ Newbie
 
Registered: Mar 2006
Location: England
Distribution: RedHat 9
Posts: 16

Original Poster
Rep: Reputation: 0
ok it now seems that the ftp is not working on the remote machine, its using proftp that comes with xampp.xampp is also installed onlocal machine. both usernames and passwords are the same but when i try to connect to local from remote...login and password fails. odd that local to remote works but no the other way round.
 
Old 03-14-2006, 07:49 AM   #11
zidane_tribal
Member
 
Registered: Apr 2005
Location: chained to my console.
Distribution: LFS 6.1
Posts: 143

Rep: Reputation: 18
hmmm, i have never used proftpd personally, i always tend to stick with vsftpd (here http://freshmeat.net/projects/vsftpd/ if your distro doesnt have its own rpm or similar.)

as for clients... wget is my favourite, simply because its awesome, but goof old 'ftp' comes a close second.
 
Old 03-14-2006, 08:21 AM   #12
Singist
LQ Newbie
 
Registered: Mar 2006
Location: England
Distribution: RedHat 9
Posts: 16

Original Poster
Rep: Reputation: 0
ok get this..ive just installed vsftpd in /etc, unpacked it and checked the status by typing service vsftpd status, i got in return vsftpd unrecognised service. what the hell is going on with this system?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
how to put files on the ftp server bry21 Linux - Networking 5 01-25-2006 12:11 AM
where does peng put its files? TheOneAndOnlySM Linux - Software 2 10-18-2005 09:05 PM
tar and ftp put on the fly nifflerX Linux - General 6 06-14-2005 11:45 AM
Where do you put your files? dbc001 Linux - General 7 02-23-2004 10:04 AM
Where to put files? codedv Linux - General 2 12-14-2003 11:26 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:23 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration