2.2.2: smbclient and stdin

Giulio Orsero giulioo at pobox.com
Wed Oct 31 04:07:02 GMT 2001

Red Hat 6.x, 2.2.19, 2.2.2

In 2.0.x you could do:
smbclient '\\srv\shr' -U% -c 'dir'
(echo dir) | smbclient '\\srv\shr' -U%
The latter would exit after re-displaying smb>.

In 2.2.x, the "-c" form is ok, but the other one does not exit, you are left at

Is this the new intended behavior or is a bug?

giulioo at pobox.com

More information about the samba mailing list