Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
If you are in the src dir AND you can 'see' the file to be sent AND ftp accepts the cmd, but then says it can't see the file (which appears to be the case in post#1), then it is possible that the actual filename contains one or more invisible ctrl chars (or even a space).
Is Server A (192.168.1.1) your local machine? If not you need to do what ostrosky.jeremiah suggested:
#enter your username/password
ftp>get billing_billing.sql #download to current directory on your machine
#enter your username/password
ftp>put billing_billing.sql #upload to current directory on ftp server
Hi, that's what i'm trying to do.
The file billing_billing.sql is inside my server A (192.168.1.1)
I'm trying to send the file from server A (192.168.1.1) to server B (192.168.1.2)
Therefore from server A:
billing_billing.sql <-- the file is here
ftp(192.168.1.1)> open 192.168.1.2
> put billing_billing.sql
local: billing_billing.sql remote: billing_billing.sql
local: billing_billing.sql: No such file or directory
I believe what you are trying to do is known as FXP, or server to server transfer (site to site transfer) and although most ftp servers support it, a lot of ftp servers do not allow it (for security reasons). You may want to google an fxp client program or first check with the server admin (if possible) to see if fxp is enabled for the servers you're using. If so, the process goes something like this:
1) Create a connection to FTP server A, and another connection to FTP server B.
On FTP server A, enter passive mode (data connections will be incoming), and make a note of the servers response to the PASV command (what ip the server will be listening on, and on what port).
2) On server B, send a PORT command (data connections will be outgoing), so that the port command data corresponds to the data in FTP server A's reply to the PASV command gathered in step 2.
3) Finally, send the STOR command to ftp server A, and the RETR command to FTP server B. The data connection will be made between those two servers, and when the transfer is complete you'll be notified with a success/failure message.
Hopefully this helps but if it doesn't work you can always do as I already suggested and just GET the file from server A (to your machine) and then PUT the file to server B.