Click to See Complete Forum and Search --> : uploading files command ??


Zer0FreeZ
08-06-2003, 09:03 AM
This might seem very newbish .. but i have been trying to figure out how to do this for a while.. At the moment i use the 'wget' command to download files from ftp sites to my unix server but i was wondering if there is a way or command that i can use to upload files from my server to another ftp site ?? Any help on this would be much appreciated.

andysimmons
08-06-2003, 09:08 AM
"put filename"

then

"man ftp"

Hayl
08-06-2003, 09:10 AM
andysimmons, i think you misunderstood what he wants.

NAME
curl - transfer a URL

SYNOPSIS
curl [options] [URL...]

DESCRIPTION
curl is a client to get documents/files from or send documents to a server, using
any of the supported protocols (HTTP, HTTPS, FTP, GOPHER, DICT, TELNET, LDAP or
FILE). The command is designed to work without user interaction or any kind of
interactivity.

curl offers a busload of useful tricks like proxy support, user authentication, ftp
upload, HTTP post, SSL (https:) connections, cookies, file transfer resume and
more.

Zer0FreeZ
08-06-2003, 10:04 AM
thanks for the help but i am having some troubles with the curl command.. i will give you an example of how i am using it.. and maybe you can tell me whether it is right or not.

this is the current directory i am in : /temp/test
and in that dir is a file called : data.txt
and this is the ftp i want to send it to : 24.230.33.7
then i use the curl command like this :

curl -T data.txt ftp://24.230.33.7/incoming/

but all that happens is that it says : curl (28) connection aborted

Any ideas ???

andysimmons
08-06-2003, 10:52 AM
Originally posted by Hayl
andysimmons, i think you misunderstood what he wants.
Oops, sorry about that. Should've re-read the post before I replied :)

Hayl
08-06-2003, 11:06 AM
it's expecting a username and password also, your current directory isn't in your path so you may have to use ./

curl -t ./data.test -u username:password ftp://24.230.33.7/incoming/

andysimmons
08-07-2003, 01:25 AM
Hey watch the language Hayl. You gotta lookout for those smileys ;)

Zer0FreeZ
08-07-2003, 04:04 AM
thanks again for the suggestion but i still can't seem to get it right.. ?!?

Any more ideas .. is there another tool other than curl that i could use?

Zer0FreeZ
08-07-2003, 04:34 AM
Don't worry now.. i think i have figured out how to fix it.. i am pretty sure there is a security issue with server i am trying to connect to.. Thanks for all of your help anyway .. i will get back to you if i have any further problems.