Link to home
Start Free TrialLog in
Avatar of taaz
taaz

asked on

ftp

I need to upload a file to a directory in ftp> from http site.

what is the way to do that.

ftp> need to upload a file from http://.....
Avatar of santoshmotwani
santoshmotwani
Flag of Australia image

can you please elaborate ...
Avatar of Sumesh BNR
please be more specific about your needs?
Which server-side language? PHP, Perl, JSP, ASP...?
Avatar of taaz
taaz

ASKER

http://public-yum.oracle.com/repo/OracleLinux/OL5/7/base/x86_64/gcc-c++-4.1.2-51.el5.x86_64.rpm   is a file that i want to upload on a ftp server

I want to upload the rpm package in the directory that I created on the ftp server.

rpm_pkg

ftp> /stage/rpm_x86_64

what command i need to use to get the gcc-c++-4.1.2-51.el5.x86_64.rpm in the rpm_x86_64 directory?.
cd /stage/rpm_x86_64
put gcc-c++-4.1.2-51.el5.x86_64.rpm
ASKER CERTIFIED SOLUTION
Avatar of omarfarid
omarfarid
Flag of United Arab Emirates image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of taaz

ASKER

the rpm "/gcc-c++-4.1.2-51.el5.x86_64.rpm" is on the site
http://public-yum.oracle.com/repo/OracleLinux/OL5/7/base/x86_64

how to first connect to the site and upload  by using the put command
ftp> cd /stage/rpm_x86_64

ftp> put http://public-yum.oracle.com/repo/OracleLinux/OL5/7/base/x86_64//gcc-c++-4.1.2-51.el5.x86_64.rpm 

is the above command correct? to upload teh package "/gcc-c++-4.1.2-51.el5.x86_64.rpm"?
Avatar of taaz

ASKER

thanks for a detailed answer
Welcome