[Use a script with Samba]

Armand Welsh armand at welshhome.org
Thu Feb 15 04:02:30 GMT 2001


*This message was transferred with a trial version of CommuniGate(tm) Pro*
I haven't tested this, but in DOS systems I would the what you want by:

let me know if it works...

 cd /home/test
 smbclient \\\\Linux2\\Shared password < control.file

control file would have these lines
 cd /home/TOTO
 put recurse * .
 exit


----- Original Message -----
From: "Minh Dang-Recalt" <minh.dang-recalt at akazi.com>
To: <samba-ntdom at us5.samba.org>
Sent: Tuesday, February 13, 2001 9:51 AM
Subject: [Use a script with Samba]


> *This message was transferred with a trial version of CommuniGate(tm) Pro*
> Hello,
>
> I wonder if i can create a script on my linux Box to copy a directory to
> another Linux Box via Samba client ?
> I'm thinking a script like that :
>
> -------------
> # bash shell
> cd /home/test -> On the local Linux Machine
> smbclient \\\\Linux2\\Shared password
> cd /home/TOTO -> On the remote Linux box
> put recurse * .
> exit
> -------------
> Of course, it doesn't work.
> Anyone has an idea to make it working ?
>
> Thanks !
>
> Minh
>
>
>





More information about the samba-ntdom mailing list