copying files from another computer(win)
hey all,
I think this is a pretty n00b question, so I decided to ask it here. How do you copy files from another networked machine, which happens to be a Windows machine and move them to a Linux machine. I already have Samba up and running and everything is being seen on the network and I can manually copy files from Windows machines to the Linux one, however I would like to know of a command or script that does it so I can make copying files into a batch job. :) |
Once the Windows share is mounted on a linux machine, you can treat it just like any "normal" directory in Linux. You can use wildcards, copy entire directories, or whatever.
Not sure what you would need a script or special command for... More details about the situation are needed (what files, where, and where are they supposed to be copied to) if you want some help automating things. |
I am 99.0002% sure that you can write a batch script that can do this using FTP.
|
mounting
I've worked out how to use the copy command and stuff, but to use it I firstly need to mount the Windows share, I've been trying to do this with the smbmount command aswell as the mount command and I feel I'm really close but somethings stuffing up, I think I'm not writing the source address correct; should it be something like smb://bob/trt-ehanks/Backups (example source) and then the destination would be /mnt/Backup or something. My problem might lie with the extra commands that come with the smbmount command such as password identification... Help.
|
Well, unfortunately, I don't use Samba myself, but after a little searching with Google, I found this:
Red Hat message In it, it basically says a guy successfully managed to mount a Windows share with a command like: Code:
smbmount //windows_host/share_name /mnt/point -o username=user,password=pw -u 500 -g 501 Give that a shot, and see if it mounts... |
If you have a gui I would suggest you have a look at LinNeighborhood.Compiling it is a breeze and you'll love it.I do.
|
All times are GMT -5. The time now is 12:37 AM. |