LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 11-04-2005, 12:22 PM   #1
samel_tvom
Member
 
Registered: Aug 2004
Posts: 133

Rep: Reputation: 15
sending files with netcat


Hi!

I want to send a file using netcat and when the transfer is complete, I want
the sender to exit netcat. Ho should I do that?

First I do
$netcat -l -p 2000 > outputfile
on the reciever computer and then I do
$cat file | netcat localhost 2000

I have to type Ctrl-C (on either of the machines) to complete the transfer.
How can I make netcat finish it's transfer when it's done without having to
do a Ctrl-C?


Thanks!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
sending files with kopete izquierdista SUSE / openSUSE 6 04-12-2005 04:51 PM
gaim sending files moger Slackware 2 07-03-2004 12:44 PM
sending files over my network sandy_obrien Linux - Networking 6 05-02-2004 02:49 PM
gaim sending files moger Linux - Software 6 03-04-2004 03:26 AM
sending files over LAN puk Linux - Newbie 6 04-16-2003 12:43 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:27 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