LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices



Reply
 
Search this Thread
Old 10-21-2004, 12:57 AM   #1
Lilupa
LQ Newbie
 
Registered: Oct 2004
Location: Colombo, Sri Lanka
Distribution: Mandrake 10 and Fedora
Posts: 2

Rep: Reputation: 0
Copy Files using smbclient


Dear Friends,
Using smbclient I can connect to a windows machine in LAN. But I can't copy files using put o mput commands. Please help me how to use that commands?

Thanks.....

Lilupa.
 
Old 10-21-2004, 01:14 AM   #2
Jerre Cope
Member
 
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
smbclient

you use get and put the same way you would with ftp. You will need to put quotes around filesnames containing spaces. Also, be sure that the share that you are trying to "put" to is share r/w.
 
Old 10-21-2004, 01:14 AM   #3
secesh
Senior Member
 
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
Straight from the manpage:

Quote:
mput <mask>
Copy all files matching mask in the current working directory on the local machine to the current working directory on the server.

Note that mask is interpreted differently during recursive operation and non-recursive operation - refer to the recurse and mask commands for more information. Note that all transfers in smbclient are binary.


print <file name>
Print the specified file from the local machine through a printable service on the server.

See also the printmode command.


printmode <graphics or text>
Set the print mode to suit either binary data (such as graphical information) or text. Subsequent print commands will use the currently set print mode.

prompt
Toggle prompting for filenames during operation of the mget and mput commands.

When toggled ON, the user will be prompted to confirm the transfer of each file during these commands. When toggled OFF, all specified files will be transferred without prompting.


put <local file name> [remote file name]
Copy the file called local file name from the machine running the client to the server. If specified, name the remote copy remote file name. Note that all transfers in smbclient are binary. See also the lowercase command.

queue
Displays the print queue, showing the job id, name, size and current status.

quit
See the exit command.

Last edited by secesh; 10-21-2004 at 01:17 AM.
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Smbclient copy from Linux to windows depam Linux - Software 4 01-02-2010 05:01 PM
smbclient copy problem (cant stat file...) taiwf Linux - Networking 6 08-01-2005 06:27 PM
how to copy files using C skie_knite007 Programming 8 05-03-2005 03:29 PM
mount_samba files but smbclient works garnser *BSD 5 02-08-2005 12:16 PM
how to copy and paste between files and within files Bheki Linux - General 1 02-05-2002 06:29 AM


All times are GMT -5. The time now is 11:46 PM.

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