LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2004, 02:53 AM   #1
lin00b
Member
 
Registered: Jun 2004
Posts: 39

Rep: Reputation: 15
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.
 
Old 07-26-2004, 04:22 AM   #2
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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.

Last edited by Dark_Helmet; 07-26-2004 at 04:29 AM.
 
Old 07-26-2004, 07:49 AM   #3
Lawful
LQ Newbie
 
Registered: Jul 2003
Distribution: red hat / pink tie
Posts: 20

Rep: Reputation: 0
I am 99.0002% sure that you can write a batch script that can do this using FTP.
 
Old 07-26-2004, 10:45 PM   #4
lin00b
Member
 
Registered: Jun 2004
Posts: 39

Original Poster
Rep: Reputation: 15
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.
 
Old 07-26-2004, 11:55 PM   #5
Dark_Helmet
Senior Member
 
Registered: Jan 2003
Posts: 2,786

Rep: Reputation: 374Reputation: 374Reputation: 374Reputation: 374
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
Obviously, you need to replace windows_host, and share_name with the right values for your Windows machine. Of course, /mnt/point is just the directory path to where you want to mount the share. Everything else depends on your setup. If your Windows share is password protected, then you'll need to give a username and password. The -u and -g just specify the owner's user ID and group ID for the mounted filesystem, but the guy in the above message seemed to have problems getting that to work.

Give that a shot, and see if it mounts...

Last edited by Dark_Helmet; 07-26-2004 at 11:57 PM.
 
Old 07-27-2004, 03:53 AM   #6
shenoy
LQ Newbie
 
Registered: Jul 2004
Location: India
Distribution: redhat 9.0
Posts: 10

Rep: Reputation: 0
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
vsftpd not list files when viewed from deifferent win machine win ftp application in anuj_sharma25 Linux - Newbie 2 11-22-2005 11:08 PM
Internet is slower on my win computer than on my linux computer eXor Linux - Networking 1 12-03-2004 08:58 AM
Errors When I copied Win files from Lin back to Win! dougp25 Linux - General 2 09-15-2004 05:03 AM
Installing RedHat 8.0 on Win98 Intel system reboots computer before copying files. livatlantis Linux - Newbie 10 08-15-2004 02:25 PM
copying from win partition Nechos Linux - Software 4 09-29-2003 11:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:50 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration