BTW, tomsrtbt Linux-on-a-floppy and CygWin has netcat in them! Didn't know
that, but I thought they might:
http://www.toms.net/rb/tomsrtbt.FAQ
http://cygwin.com/cgi-bin2/package-cat.cgi?file=netcat/netcat-1.10-1&grep=ne
tcat

What this means is that you don't have to setup a specific FTP or SSH or
whatever server to transfer files between two machines. Just run CygWin or
boot tomsrtbt on each box, [mount the desired hd partitions,] and use netcat
as a server on one machine and a client on the other to transfer files. I
can think of bunches of places to use this kinda functionality.

John Hebert

-----Original Message-----
From: Adam J. Melancon
To: [email protected]
Sent: 6/3/03 10:48 AM
Subject: Re: [brlug-general] very informative article on netcat

I love netcat!
here are the pages I used to learn about it.
http://www.searchlores.org/aznetcat.htm
http://is-it-true.org/pt/ptips21.shtml

Here is a tip I left on the Knoppix forum
"quick and dirty file transfer with netcat"

I use this to transfer files sometimes in a pinch.
It uses the tool netcat which is nc on the command line.
To create a simple single file server:
nc -l -p 1234 < file
This example listens on port 1234 on knoppix, and when
you connect to that port in a browser from another machine, the contents
of 
the file named 'file' are sent to the client.
Here is an example of when I used it to get an excel file.
I went to the directory where the file exists, and typed in:
nc -l -p 1234 < 10.xls
then i go to my browser on the other machine
http://<knoppix-box-ip>:1234
then i let it load (it looked garbled, but thats what the actual text of
an 
excel file looks like if you were to cat it) and I think you have to hit

stop after you see it's done.
I then go to file and save, and save it as 10.xls.
I can then open it in excel on the client computer.
I know there are about 1000 different ways I could have grabbed that
file, 
and I can't promise that it will work in your situation, but this is
tips & 
tricks and I think it's a cool trick.



Adam J. Melancon


----Original Message Follows----
From: John Hebert <[EMAIL PROTECTED]>
Reply-To: [email protected]
To: "'[email protected]'" <[email protected]>
Subject: [brlug-general] very informative article on netcat
Date: Tue, 3 Jun 2003 10:30:36 -0500

http://www.onlamp.com/pub/a/onlamp/2003/05/29/netcat.html

Netcat('nc') is to network ports what 'cat' is to files. Nice little
tool
I've just started learning about. I can see where netcat and busybox
(http://www.busybox.net/) would form a tiny but powerful tool set for a
very
minimal system.

John Hebert

_______________________________________________
General mailing list
[email protected]
http://brlug.net/mailman/listinfo/general_brlug.net

_________________________________________________________________
MSN 8 helps eliminate e-mail viruses. Get 2 months FREE*.  
http://join.msn.com/?page=features/virus


_______________________________________________
General mailing list
[email protected]
http://brlug.net/mailman/listinfo/general_brlug.net

Reply via email to