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 ---