Hi,

I need to terst my subdirectory, i have trying following test with an
error, where is my mistake.
#!/bin/sh

rhost=192.168.10.12
ruser=jean
rsdir=dir1
rpasswd=toto
rsubdir=tst

#if [ "X`smbclient \\\\$rhost\\$rsdir -U $ruser%$rpasswd -c cd
"$rsubdir" 2>&1`" =
= X ]; then

echo 'AAAA'

fi


Following command is ok
smbclient \\\\192.168.10.12\\dir -Ujean%toto -c "cd tst"



Regards
Philippe