I wonder what happened, I posted this one, but it's showed up as a Guest post....
oh well....
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.
Here are some more netcat tips and tricks.
http://is-it-true.org/pt/ptips21.shtml
Enjoy!
I wonder what happened, I posted this one, but it's showed up as a Guest post....
oh well....
polish translation of this article / polskie t?umaczenie tego artyku?u :
http://debiandiary.aso.strefa.pl/vie...asc&highlight=
--That is really cool! It only works once per invocation (if the file transfer gets stopped in the middle, netcat craps out; but you could put it in a loop I suppose) but it sure beats having to start up an FTP server for just one file.
--It kind of acts like a mini-http server, but you have to know what to save the file as on the client side.
--Nice hack!
Originally Posted by adamm
Lenovo ThinkPad E15, i5, 8GB RAM, 256GB SSD, No OS, 20RD005HUS
$180.00
Lenovo Thinkbook 15 15.6” FHD Laptop Core i5 10th 8GB RAM 512GB SSD Windows 11
$224.99
LENOVO THINKPAD L380 i5-8350U @ 1.70 GHz, 16GB RAM, 512 GB SSD, Windows 11 Pro
$150.00
Lenovo - Yoga 7i 2-in-1 14" 2K Touchscreen Laptop - Intel Core Ultra 5 125U w...
$599.99
Lenovo Ideapad 1i 15.6" FHD Touch Laptop - Intel Core i3-1215U with 8GB Memor...
$349.99
Lenovo Legion Pro 5i 16" Gaming Laptop RTX 4070 8GB i9-13900HX 16GB RAM 1TB SSD
$1369.99
Lenovo 100e Laptop PC Computer 11.6" Windows 10 Celeron 4GB RAM 64GB SSD
$89.99
Lenovo IdeaPad Flex5 15ITL05 15.6" Laptop i7-1165G7 16GB Ram 500GB SSD READ
$199.95
Lenovo Thinkpad T470 : Intel Core i5 7200U@ 2.5Ghz, 8Gb Ram, 1 TB HDD, Google OS
$69.99
Lenovo ThinkPad T470s 14" Intel i5 6th Gen 8GB RAM 120GB SSD WiFi Win 10 Laptop
$129.99