Hi,
I am having difficulty tranferring a file from my UNIX server to a Windows Share using the Samba client - smbclient, from a UNIX SH script
When I execute the following command from the shell prompt, it works perfectly;
[blue]/opt/samba/bin/smbclient //MyWinServer/MyWinShare$ -I 10.85.0.89 -A /home/me/smbclient.cfg -d 2 -c "put UKAGLMN_012012_9.csv; exit;"[/blue]
However when I execute the following source code within my SH script, it just hangs
Can anybody please advise what I'm doing wrong?
I am completely baffled now
I am having difficulty tranferring a file from my UNIX server to a Windows Share using the Samba client - smbclient, from a UNIX SH script
When I execute the following command from the shell prompt, it works perfectly;
[blue]/opt/samba/bin/smbclient //MyWinServer/MyWinShare$ -I 10.85.0.89 -A /home/me/smbclient.cfg -d 2 -c "put UKAGLMN_012012_9.csv; exit;"[/blue]
However when I execute the following source code within my SH script, it just hangs
Code:
tmpSambaCommand="$smbclientEXE //${AXWINSERVER}/${AXWINSHARE} -I ${AXWINIP} -A ${AXSMBAUTH} -d 2 -c \"put ${tmpFileToCopy}; exit;\""
echo $tmpSambaCommand
$tmpSambaCommand;;
/opt/samba/bin/smbclient //MyWinServer/MyWinShare$ -I 10.85.0.89 -A /home/
me/smbclient.cfg -d 2 -c "put UKAGLMN_012012_9.csv; quit;"
added interface ip=10.200.2.125 bcast=10.200.2.255 nmask=255.255.255.0
Domain=[GLOBAL] OS=[Windows Server 2003 3790 Service Pack 2] Server=[Windows Ser
ver 2003 5.2]
put <filename>
Can anybody please advise what I'm doing wrong?
I am completely baffled now