[Samba] smbclient -c commands

Shane Chambers shanechambers at yahoo.com
Thu Jan 30 04:13:18 GMT 2003


Hello,

Has anyone else run into the problem where smbclient only processes the
commands before a space in the "command string" (-c) field but not the
rest?

My NON-WORKING example:

# smbclient '\\server\Documents' -d 0 -U abackup -E -c 'archive
1;recurse;du'
Password: 
Archive level is 0

It processed the "archive" (returning what archive level it's at
currently), not the "archive 0", let alone the "recurse;du"

But the following works:
# smbclient '\\server\Documents' -d 0 -U abackup -E -c
"archive;recurse;du"  
Password: 
Archive level is 0

                38107 blocks of size 1048576. 8475 blocks available
Total number of bytes: 5091539134

In this case it told us the "current archive level," and did the
"recurse;du" arguments.  All because the space wasn't in there.

The following works, up till the space, as well, proving that it's the
space causing the problem:
# smbclient '\\server\Documents' -d 0 -U abackup -E -c "ls;archive
1;recurse;du"
Password: 
  .                                   D       0  Fri Jan 10 12:54:58 2003
  ..                                  D       0  Fri Jan 10 12:54:58 2003
  Administrator                       D       0  Thu Apr 11 20:46:14 2002
  All Users                           D       0  Thu Apr 11 20:46:10 2002
  Default User                       DH       0  Mon Apr 29 08:19:02 2002
  LocalService                      DHS       0  Fri May  3 16:21:46 2002
  NetworkService                    DHS       0  Thu Apr 11 20:46:14 2002
  stdin-10919                         A       0  Fri Jan 10 12:54:58 2003

                38107 blocks of size 1048576. 8475 blocks available
Archive level is 0

Any help would be appreciated.  I've looked everywhere, but I can't find
any reference to this.  

Samba Version:	2.2.7a
OS:		Solaris 2.8

Please CC me, as I don't subscribe to the mailing list.  If this is in
fact a bug, I'll file a bug report appropriately.

Thanks,
Shane Chambers

__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com


More information about the samba mailing list