Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Help with smbclient

Status
Not open for further replies.

bluegroper

Technical User
Dec 12, 2002
407
0
0
AU
Hi forum
I'm trying to copy all files from a linux directory, to a directory on a remote windoze computer.
I can do it one file at time without bother.
Code:
smbclient //workstation/drivec -Uuser%password -c 'lcd /directory; cd temp\directory; put filename.ext ; exit'
But it borks if I try to copy ALL files using '*'.
Code:
smbclient //workstation/drivec -Uuser%password -c 'lcd /directory; cd temp\directory; put * ; exit'
Error is
Code:
* does not exist
Is there a way to do this ?
TIA's
- BG
 
Instead of using smbclient, you could just mount the W*****s share and use standard file-copying tools.
 
This works !!
Code:
smbclient //workstation/drivec -Uuser%password -c 'lcd /directory; prompt; cd temp\directory; mput * ; exit'
Many thx's
- BG
 
You may also consider the recurse command.

Hope This Helps, PH.
Want to get great answers to your Tek-Tips questions? Have a look at FAQ219-2884 or FAQ181-2886
 
PH
Thx for the suggestion, but recurse is NOT what I need.
Just prompt; del *; mput *;
Hope I'm in the right forum, being nice, correct subject, etc's.
- BG
PS. I'm using this to do a forced update of the Start Menu of a bunch of windoze machines on a LAN.
Maintaining an office full of windoze boxen is such a painfull experience.
smbclient is making it easier.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top