about mget command in smbclient

John Chambers JLChambers at Kliklok.com
Tue Oct 23 17:26:36 GMT 2001


use the "prompt" command within smbclient.
for example:

$smbclient \\\\servername\\sharename password -U username -c "cd
inv;prompt;mget mat*;exit"


-----Original Message-----
From: johnd [mailto:johnd at attronica.com]
Sent: Tuesday, October 23, 2001 9:56 AM
To: smb-clients at lists.samba.org
Subject: about mget command in smbclient


Hi, 
We use smbclient to connect from UNIX to NT shared fold.
We try to write a script to transfer several files by using mget command.
The problem is that when run the script, it prompts each file name to ask
Yes or No, then press enter. 
How to set the mask for mget and what is the correct syntax for mget command
so that files can transfer without type Y and press enter? 
Thanks in advance.
John Ding   e-mail: johnd at attronica.com




More information about the smb-clients mailing list