Red Hat 6.x, 2.2.19, 2.2.2 In 2.0.x you could do: smbclient '\\srv\shr' -U% -c 'dir' or (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 smb> Is this the new intended behavior or is a bug? -- giulioo at pobox.com