copying files from linux to windows xp over a home network

Hi,  I have 2 PCs on a small home network.  1 is a linux pc (RHEL4) w/ an ip addy of 192.168.0.10.
the other is a windows xp box (192.168.0.11).

is there a way (using either dos or bash) to copy specific files from a linux box into a specific directory on the windows xp box?

e.g. I want to copy /usr/pd/test.txt  over to C:\mydirectory

Is this possible?  If so, is there a relatively straightforward syntax to use?

Danke
pdaneseAsked:
Who is Participating?
 
nedvisConnect With a Mentor Commented:
There are many different ways you can copy/move/replicate files between Linux and Windows computers on small peer-to-peer networks as your homenetwork is:
1- via FTP servers
2- samba ( Linux support for Windows networking ) files/folders/printer sharing
3- NFS
   etc.

Probably the simplest way to copy files from Linux ( RedHat Enterprise 4) is to install and enable FTP server on RHEL4 PC  so you can get access to Linux PC from Windows XP using Internet Explorer ( or any other WEB browser ) or via command line ( ftp open http://192.168.0.10 etc.)
Running Samba folder/printer sharing service ( smb/nbm ) on Linux PC is more convenient way of accessing files on Linux box from Windows based computers but you'll have to learn how to configure Samba on RHEL4.
  ---------------------------------------
http://linuxreviews.org/software/p2p/             Peer to peer file sharing
http://www.linuxheadquarters.com/howto/networking/samba.shtml   Samba Configuration - Linux/Windows Connectivity
----------------------------------------

good luck
nedvis
0
 
rich911Connect With a Mentor Commented:
You can use WinSCP from your windows box
http://winscp.net/

Or more precisely if you need to
/usr/pd/test.txt over to C:\mydirectory
then this is some thing that is initialated from the Linux end, so you can share your c:\mydirectory from windows - or use the hidden c$ share that should already be there.
do
smbclient -L //windowsmachine
for a list of shares

Then mount one like this:
mkdir /mnt/windows_c
mount -t smbfs -o username=windowsusername,password=windowspassword //windowsmachine/$c /mnt/windows_c

once you have done that you can do
cp /usr/pd/test.txt /mnt/windows_c/mydirectory/
to copy your file

see also
http://www.experts-exchange.com/Networking/Linux_Networking/Q_21867212.html
0
 
aravinthrkConnect With a Mentor Commented:
More Simpler way (enhancing Rich's answer) if you're using KDE.

1.  Share your Windows folder.
2. Open Konqueror browser in your Linux Box.
3. In the address bar, type the url of the form
              smb://<domain>\<username>@<windowsPcName>/Path/To/Share/Folder/ShareFolderName
There you Go!!!!

Let us know how it goes.
Good Luck
Aravinth.
0
 
owensleftfootConnect With a Mentor Commented:
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.