Bug 7553 - multiple commands in -c do not work
multiple commands in -c do not work
Status: NEW
Product: Samba 3.5
Classification: Unclassified
Component: SMB2
3.5.4
Other Linux
: P3 normal
: ---
Assigned To: Jeremy Allison
Samba QA Contact
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-05 12:24 UTC by Enrico Scholz
Modified: 2010-07-05 12:24 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Enrico Scholz 2010-07-05 12:24:10 UTC
When using '-' (stdin), subsequent commands in -c will be ignored:

---
$ echo abc | smbclient -k //cricetus/test3 -c 'put - /x ; ls ' 
Domain=[XXXXXXXXXXXXXX.DE] OS=[Unix] Server=[Samba 3.0.33-3.28.el5]
putting file - as \/x (1,3 kb/s) (average 1,3 kb/s)

$ $ smbclient -k //cricetus/test3 -c 'ls'
Domain=[XXXXXXXXXXXXXX.DE] OS=[Unix] Server=[Samba 3.0.33-3.28.el5]
  .                                   D        0  Mon Jul  5 19:12:48 2010
  ..                                  D        0  Thu Oct 15 10:58:47 2009
  x                                            4  Mon Jul  5 19:21:36 2010

                2048 blocks of size 512. 2040 blocks available
---