By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
425,563 Members | 1,066 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 425,563 IT Pros & Developers. It's quick & easy.

copy files to windows using samba

bhing
P: 43
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
Apr 14 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 100+
P: 511
you do that like the way to do for ftp, using here document
eg
Expand|Select|Wrap|Line Numbers
  1. ftp -n server << EOF
  2. ...
  3. ..
  4. EOF
  5.  
so for smbclient, you do the same:
Expand|Select|Wrap|Line Numbers
  1. smbclient //server/share -U user .... <<EOF
  2. put file
  3. ....
  4. EOF
  5.  
you can try this method out.
Apr 14 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.