[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: smbclient



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 08-11-2007 18:47, Ron@n Lopes wrote:
> Estou tentando fazer um script de backup onde o script será executado em
> uma maquina linux, que ira buscar arquivos em maquinas windows através
> de compartilhamento oculto C$.
> 
> smbclient -U "SPA\ronan"%abc123  //10.20.30.26/C$
> 
> funciona sem problemas, mas quando tento acessar uma pasta um nível
> abaixo não funcina....
> 
> ex:
> 
> smbclient -U "DOMINIO\ronan"%abc123  //10.20.30.26/C$/  -c “cd Documents
> and Settings”  
> 
>  não funciona por causa dos espaços em branco
> 
> smbclient -U "DOMINIO\ronan"%abc123  //10.20.30.26/C$/  -c “cd windows”  
> 
> funciona
> 
> tentei também
> 
> smbclient -U "DOMINIO\ronan"%abc123  //10.20.30.26/C$/  -c “cd
> Documents\ and\ Settings”  
> 
> smbclient -U "DOMINIO\ronan"%abc123  //10.20.30.26/C$/  -c “cd
> “Documents and Settings” ”
> 
> smbclient -U "DOMINIO\ronan"%abc123  //10.20.30.26/C$/  -c “cd
> “Documents and Settings””    
> 
> já criei uma variável
> 
> abc=” Documents and Settings”
> 
> smbclient -U "DOMINIO\ronan"%abc123  //10.20.30.26/C$/  -c “cd $abc”
> 
> nada funciona.... se alguém puder me ajudar   

	Tentou usar aspas simples?  -c 'cd x y z'?

	Tentou usar o nome curto do DOS?  -c "cd docume~1"

	Tentou usar algo melhor que SMB pra fazer isso? Como
rsync (para windows tem o cwrsync).

	Tentou montar o dispositivo usando smbmount?


	Abraço,
- --
Felipe Augusto van de Wiel (faw)
"Debian. Freedom to code. Code to freedom!"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHM7OvCjAO0JDlykYRAoKfAJ9g+IRfi5FKdxbCoWS0LhJlx6wy6ACcDsrN
XIfJBQwUDykMXxxlt80EkxI=
=lLMP
-----END PGP SIGNATURE-----



Reply to: