PDA

View Full Version : script per spostamento automatico files


roccia1234
17-07-2008, 18:28
ciao a tutti!!
secondo voi è possibile fare uno script che in automatico mi copi dei files da un pc windows a uno linux (kubuntu), collegati in rete tramite samba in particolare:
sul pc windows ho 3 cartelle separare (a,b,c) e sul pc linux una sola cartella (d), avviando questo script tutti i files contenuti nelle cartelle a,b,c devono essere spostati nella cartella d automaticamente.

potrei fare una cosa del genere??

grazie

roby

Gimli[2BV!2B]
17-07-2008, 23:24
Butta un'occhiata a smbclient: permette di fare qualsiasi movimento tra condivisioni Samba tramite comandi secchi o una sessione interattiva in console.

Io ho qualche esperienza solo con l'utilizzo interattivo, la sintassi dei comandi schietti è un po' arzigogolata... (essendoci in mezzo eventuali autenticazioni, permessi assortiti, navigazioni in cartelle remote, tar, ecc...)

man smbclient per avere tutti i dettagli.

roccia1234
18-07-2008, 11:48
ho provato:

smbclient -c mget //192.168.1.4/D/config.bin /home/roby

e ottengo:

Domain=[P-II] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

ho provato

smbclient -c get //192.168.1.4/D/config.bin /home/roby

e ottengo:

Domain=[P-II] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
tree connect failed: NT_STATUS_BAD_NETWORK_NAME

ho provato:

smbclient -c get //192.168.1.4/D /home/roby

e ottengo:

Domain=[P-II] OS=[Windows 5.1] Server=[Windows 2000 LAN Manager]
get <filename>

in file esiste e l'indirizzo è corretto... come risolvo??

kingv
18-07-2008, 21:09
prova con:
smbclient //192.168.1.4/D/ -c "get config.bin"

eseguito da /home/roby

Hardware Upgrade Forum Database Error
Database Error Database error
The Hardware Upgrade Forum database has encountered a problem.

Please try the following:
  • Load the page again by clicking the Refresh button in your web browser.
  • Open the www.hwupgrade.it home page, then try to open another page.
  • Click the Back button to try another link.
The www.hwupgrade.it forum technical staff have been notified of the error, though you may contact them if the problem persists.
 
We apologise for any inconvenience.