copy files to windows using samba

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bhing
    New Member
    • Oct 2006
    • 43

    #1

    copy files to windows using samba

    hiya everyone!!

    i would like schedule task using crontab to copy files from linux to windows xp. I understand that when you browse to windows you use the command 'smbclient //hostname'.. but what about if i will copy files from fedora 5 to windows xp? please advise me what to do// thnks
  • ghostdog74
    Recognized Expert Contributor
    • Apr 2006
    • 511

    #2
    you do that like the way to do for ftp, using here document
    eg
    Code:
    ftp -n server << EOF
    ...
    ..
    EOF
    so for smbclient, you do the same:
    Code:
    smbclient //server/share -U user .... <<EOF
    put file
    ....
    EOF
    you can try this method out.

    Comment

    Working...