LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 09-09-2008, 07:16 AM   #1
swift2008
Member
 
Registered: Jul 2008
Posts: 78

Rep: Reputation: 15
transfer a file with in the LAN


hi all
i need to transfer some files(in any format .zip etc.)
from linux machine to windows machine or viceversa with in the LAN

i mean to say is .. i need command line interpreter to transfer a file

any help it should be appreciable
 
Old 09-09-2008, 07:40 AM   #2
FLLinux
Member
 
Registered: Jul 2004
Location: USA
Distribution: Fedora 9, LFS 6.3, Unbuntu 8.04, Slax 6.0.7
Posts: 145

Rep: Reputation: 15
Can you use FTP? I don't really understand the question. Do you want suggestions on programs to use to transfer the file or do you want code suggestions on how to create your own transfer program?

If you are looking for programs you could use FTP, Samba, and others to transfer the file.
 
Old 09-09-2008, 07:46 AM   #3
indienick
Senior Member
 
Registered: Dec 2005
Location: London, ON, Canada
Distribution: Arch, Ubuntu, Slackware, OpenBSD, FreeBSD
Posts: 1,853

Rep: Reputation: 65
Could you use Samba to set up an SMB/CIFS share on your Linux box?
 
Old 09-09-2008, 08:06 AM   #4
matthewg42
Senior Member
 
Registered: Oct 2003
Location: UK
Distribution: Kubuntu 12.10 (using awesome wm though)
Posts: 3,530

Rep: Reputation: 65
There are many protocols / utilities which could help. Most of them require some sort of server to be running on at least one of the machines. Here are a few options:
  • Run an ftp server on the destination machine. Using an FTP client on the source machine, use the PUT command to send the file.
  • Run an ftp server on the source machine. Using an FTP client on the destination machine, use the GET command to fetch the file.
  • Run an rsync server on the destination machine. Copy the file using rsync from the source machine.
  • Run an rsync server on the source machine. Copy the file using rsync from the destination machine.
  • Run a small web server on the source machine. Download from the destination machine using your web browser.
  • On the destination machine, use Windows File Sharing to create a share which is writable. Connect to this share (e.g. using konqueror on the source machine), and copy the file to the share.
  • Email the file, collect the mail from the destination machine.

This list goes on and on (NFS, FSP, scp, SFTP, netcat for the über geeky, etc.)

The limiting factor will be what you are able to install on the Windows machine (especially if it's a corporate network where you are not allowed to install things like FTP servers.
 
Old 09-09-2008, 08:29 AM   #5
asimba
Member
 
Registered: Mar 2005
Location: 127.0.0.0
Distribution: Red Hat / Fedora
Posts: 355

Rep: Reputation: 42
Using Distro you are running ?

Samba is the easiest of all. (Considering it was installed - even if not - installing it is piece of cake)

And a real simple configuration file should do the trick.

Login Security may apply as to installing software/sharing file.
 
  


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
Slow LAN transfer from Ubuntu Dapper to Windows XP SP2 Kaladar Linux - Networking 2 12-09-2011 11:53 AM
file time stamp is wrong with ssh file transfer cy163 Linux - Newbie 8 05-18-2008 01:40 AM
Very slow transfer speeds via LAN TBomb Linux - Networking 6 07-26-2005 08:34 AM
How can i get higher transfer speeds on my small LAN? Klas Linux - Networking 3 03-18-2004 03:10 PM
File transfer between two linux boxes in a LAN ganninu Linux - Newbie 6 09-09-2003 10:37 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:46 AM.

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