To ease scripting, it would be nice when the -c option supports an && operator. E.g. it would allow something like | smbclient ... -c 'put foo foo.tmp && rename -f foo.tmp tmp'