LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
LinkBack Search this Thread
Old 03-31-2009, 08:22 AM   #1
amit_kalipur
Member
 
Registered: Dec 2008
Location: Delhi 91
Distribution: RHEL 5
Posts: 74
Blog Entries: 2

Rep: Reputation: 15
uploading file using ftp


Dear all,
Please tell me how to upload files using ftp.when i run put file_name,It show error.
Thanks.
 
Old 03-31-2009, 08:45 AM   #2
vlademir
Member
 
Registered: Jan 2009
Location: The Netherlands
Distribution: Centos,Ubuntu,Mandriva,Suse11.1
Posts: 86

Rep: Reputation: 17
Smile

Quote:
Originally Posted by amit_kalipur View Post
Dear all,
Please tell me how to upload files using ftp.when i run put file_name,It show error.
Thanks.
How you put the files on the server ? using ftp client or by command line?
past here the out put of the error
 
Old 03-31-2009, 06:55 PM   #3
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
As vlademir said, we need error logs.

I don't mean to be rude or anything, but you've made 58 posts and still haven't realised how to ask a question properly?
 
Old 03-31-2009, 07:15 PM   #4
jcamez
LQ Newbie
 
Registered: Oct 2006
Location: Guaymas, Sonora, Mexico
Distribution: Home: Slackware 12.2, Slackware current.
Posts: 14

Rep: Reputation: 1
mput

Have you tried with "mput" ???
when i use smbclient put does not work but mput does.
maybe that can help.
HTH

Joel Camez
 
Old 03-31-2009, 07:16 PM   #5
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
This topic should be merged with http://www.linuxquestions.org/questi...server-713335/
 
Old 04-02-2009, 08:13 AM   #6
amit_kalipur
Member
 
Registered: Dec 2008
Location: Delhi 91
Distribution: RHEL 5
Posts: 74
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by saman007uk View Post
As vlademir said, we need error logs.

I don't mean to be rude or anything, but you've made 58 posts and still haven't realised how to ask a question properly?
Sorry for incomplere question and thanks for ur response.
Here is the error messages:-
230 Login successful.
Remote system type is UNIX.
Using binary mode to transfer files.
ftp> put /aa 192.168.0.45:/
local: /aa remote: 192.168.0.45:/
local: /aa: No such file or directory
ftp> put 192.168.0.91:/aa 192.168.0.45
local: 192.168.0.91:/aa remote: 192.168.0.45
local: 192.168.0.91:/aa: No such file or directory
ftp>

192.168.0.45 is ftp server and .91 is client.
Please tell me how to upload the file.
Thanks.
 
Old 04-02-2009, 08:18 AM   #7
saman007uk
Member
 
Registered: Dec 2003
Location: ~root
Distribution: Debian
Posts: 363

Rep: Reputation: 32
You do not need to specify server IP in the put command. Also, I suspect /aa is not the correct path. Evrything is fine, you are just using incorrent syntax.

Assuming that you run the FTP client from the folder where the file "aa" is, try:
Code:
put aa

Last edited by saman007uk; 04-02-2009 at 08:19 AM.
 
Old 04-04-2009, 06:11 AM   #8
amit_kalipur
Member
 
Registered: Dec 2008
Location: Delhi 91
Distribution: RHEL 5
Posts: 74
Blog Entries: 2

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by saman007uk View Post
You do not need to specify server IP in the put command. Also, I suspect /aa is not the correct path. Evrything is fine, you are just using incorrent syntax.

Assuming that you run the FTP client from the folder where the file "aa" is, try:
Code:
put aa
Thanks for ur reply.
when i try to upload the file named anshu under /,you can see following error .
ftp>
ftp> ls
227 Entering Passive Mode (192,168,0,45,174,23)
150 Here comes the directory listing.
-rw-r--r-- 1 502 502 33 Apr 04 18:20 aks
-rw-r--r-- 1 502 502 46 Apr 04 18:39 ftp
drwxrwxr-x 2 502 502 4096 Mar 24 02:31 mannu
226 Directory send OK.
ftp> put anshu
local: anshu remote: anshu
local: anshu: No such file or directory
ftp>

[root@server1 /]#
[root@server1 /]# ls
aks boot etc lib misc opt sbin sys var
anshu dev ftp lost+found mnt proc selinux tmp
bin dump home media net root srv usr
[root@server1 /]#
 
  


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Services crash when uploading file to ftp site mwclassen Linux - Software 1 01-09-2007 04:34 PM
setting permissions on a file after uploading via FTP dgsr2002 Linux - Newbie 4 10-21-2004 07:15 PM
FTP Uploading Problem Ned Linux - Networking 0 05-09-2003 02:22 PM
problem uploading file to ftp server hnguy Linux - Newbie 3 11-20-2002 04:16 PM
FTP uploading... Thymox Linux - Networking 4 02-05-2002 12:01 PM


All times are GMT -5. The time now is 02:41 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration