Pablo Graziano
2005-Dec-23 04:15 UTC
[Samba] Is it possible to write an "smbclient" automated script
I'd like to write an automated smbclient script. Something simple, like: login cd to a certain directory copy that entire directory to client logout Is this possible, and how?
Beast
2005-Dec-23 07:04 UTC
[Samba] Is it possible to write an "smbclient" automated script
Pablo Graziano wrote:> I'd like to write an automated smbclient script. Something simple, like: > login > cd to a certain directory > copy that entire directory to client > logout > > Is this possible, and how?Why not use smbmount instead? smbmount //svr/share /mnt/samba -o username=myuser,password=mypasswd cp -r /mnt/samba/source /tmp/destination -- --beast
WebMaster
2005-Dec-24 12:24 UTC
[Samba] Is it possible to write an "smbclient" automated script
El Viernes, 23 de Diciembre de 2005 05:19, Pablo Graziano escribi?:> I'd like to write an automated smbclient script. Something simple, like: > login > cd to a certain directory > copy that entire directory to client > logout > > Is this possible, and how?I think you can use autoexpect to create the script. Install expect and man autoexpect its really easy PPablo