[Samba] smbclient -c options
David Morel
david.morel at amakuru.net
Thu May 15 18:25:39 GMT 2003
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Le Jeudi 15 Mai 2003 17:52, Mark_Saunders a écrit :
> 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?
>
you could also mount it as smbfs and do a find | wc -l
- --
***********************************
david.morel at amakuru.net
OpenPGP public key: http://www.amakuru.net/dmorel.asc
28192ef126bc871757cb7d97f4a44536
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
iD8DBQE+w9ujqr7QF98duCMRAhbhAJ0crGWmuHUZoXpNTDeNhvFTPaXaXACeLFY9
J0FVa5BNHcb5F75Pop5PHJQ=
=9FA/
-----END PGP SIGNATURE-----
More information about the samba
mailing list