[Use a script with Samba]

Simo Sorce simo.sorce at polimi.it
Wed Feb 14 13:33:45 GMT 2001


On Tue, 13 Feb 2001, Minh Dang-Recalt wrote:

> 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

Isn't it easier with scp using public key authentication (or rcp if you
have a really trusted network) ?

-- 
Simo Sorce - Linux Systems Consultant
E-mail: simo.sorce at polimi.it
Tel: +39 0348 7149179 - Fax: +39 02 700442399
-----------------------------------------------------------------
Be happy, use Linux!





More information about the samba-ntdom mailing list