[Samba] smbclient -c options
Mark_Saunders
Mark_Saunders at piucorp.com
Thu May 15 15:52:16 GMT 2003
I'm trying to get a recursive file listing with smbclient:
smbclient //host/share -Uusername%password -c "ls -alFR"
But I get an error:
NT_STATUS_NO_SUCH_FILE listing \-alFR
Evidently, smbclient thinks I'm asking for a file mask.
Is there a way to get a recursive file listing on a samba share so I can
pipe it to wc -l for a file count?
Ideally, I'd like to:
(This won't work, but you get the idea...)
smbclient //host/share -Uusername%password -c "ls -alFR | wc -l"
Thanks!
More information about the samba
mailing list