Review your favorite Linux distribution.
Go Back > Forums > Linux Forums > Linux - General
User Name
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.


  Search this Thread
Old 10-20-2004, 11:57 PM   #1
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?


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

Rep: Reputation: 37

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, 12:14 AM   #3
Senior Member
Registered: Sep 2004
Location: Savannah, GA
Distribution: Ubuntu, Gentoo, Mythbuntu, ClarkConnect
Posts: 1,154

Rep: Reputation: 47
Straight from the manpage:

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.

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.

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

See the exit command.

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


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 04:01 PM
smbclient copy problem (cant stat file...) taiwf Linux - Networking 6 08-01-2005 05:27 PM
how to copy files using C skie_knite007 Programming 8 05-03-2005 02:29 PM
mount_samba files but smbclient works garnser *BSD 5 02-08-2005 11:16 AM
how to copy and paste between files and within files Bheki Linux - General 1 02-05-2002 05:29 AM > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:55 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration