[Samba] smbclient -c options

Mark_Saunders
2003-05-15T15:52:16Z

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!