Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Sat 25 Oct 2014, 11:27
All times are UTC - 4
 Forum index » Advanced Topics » Cutting edge
Netcat-based LAN file transfer utility (tiny)
Moderators: Flash, Ian, JohnMurga
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
Page 1 of 1 Posts_count  
Author Message
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Fri 22 Jan 2010, 09:27    Post_subject:  Netcat-based LAN file transfer utility (tiny)  

Dear puppians,

I notice there is some useful work going on regarding file sharing using Samba. In my view, Samba is a big, fat pig and, because I really have no reason to boot windows, I cobbled together a little script that uses a patched Debian netcat to transfer files within a LAN environment. It is not perfect, but does the job of transferring individual files. Next I will try to include directories, which netcat can do. I have attached the script and the Debian netcat (because it has the -q option). Please have a look. Perhaps somebody may want to give this script a gtkdialog front end.

With kind regards,
vovchik

PS. Unpack the archive and read readme.txt for setup instructions.
fsend.tar.gz
Description 
gz

 Download 
Filename  fsend.tar.gz 
Filesize  12.2 KB 
Downloaded  307 Time(s) 
Back to top
View user's profile Send_private_message 
trapster


Joined: 28 Nov 2005
Posts: 2009
Location: Maine, USA

PostPosted: Fri 22 Jan 2010, 20:38    Post_subject:  

Can you give an example of how to use?
When I send a file from my laptop to my server, I get a response that the file is available thru my browser or wget.

What do I need to do on my server to automatically receive the file?
Code:

******************** FILESEND STARTED ********************

The file you are trying to send ("avatar_sm.jpg") is available via http at
the following local address (this computer):

            http://192.168.1.101:8099/avatar_sm.jpg

You can retrieve it on another LAN machine by typing the URL above
into your browser or by running

            wget http://192.168.1.101:8099/avatar_sm.jpg

in a terminal.

This program will close automatically once the file has been retrieved.
If you have second thoughts about sending/receiving the file, simply
exit this script by typing ctrl-c.

********************      WAITING      ********************

_________________
trapster
Maine, USA

Asus eeepc 1005HA PU1X-BK
Frugal install: Puppeee4.31 + 1.0, Puppy4.10 + Lupu52
Currently using Slacko AND lupu52 w/ fluxbox
Back to top
View user's profile Send_private_message Visit_website 
vovchik


Joined: 23 Oct 2006
Posts: 1285
Location: Ukraine

PostPosted: Sat 23 Jan 2010, 04:00    Post_subject:  

Dear trapster,

You started the script OK and that means the server is waiting to send the file. On the remote machine, either type that URL into a browser or run wget in a terminal using that same URL. I think what you really want is for that file to be placed on your remote machine automatically - without further intervention. At present, filesend doesn't do that. For that to work, there would have to be a daemon running on the receiving machine and filesend would have to be modified to send to a specific IP. I will look into that... It is possible to do that with netcat. My next mod will be adding the option to send complete directories.

With kind regards,
vovchik
Back to top
View user's profile Send_private_message 
sc0ttman


Joined: 16 Sep 2009
Posts: 2385
Location: UK

PostPosted: Sat 23 Jan 2010, 09:25    Post_subject:  

vovchik wrote:
My next mod will be adding the option to send complete directories.

With kind regards,
vovchik

I like the look of this - gets the job done simply.. I look forward to seeing how it may be improved...

_________________
Akita Linux, VLC-GTK, Pup Search, Pup File Search
Back to top
View user's profile Send_private_message 
Display_posts:   Sort by:   
Page 1 of 1 Posts_count  
Post_new_topic   Reply_to_topic View_previous_topic :: View_next_topic
 Forum index » Advanced Topics » Cutting edge
Jump to:  

Rules_post_cannot
Rules_reply_cannot
Rules_edit_cannot
Rules_delete_cannot
Rules_vote_cannot
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0499s ][ Queries: 12 (0.0039s) ][ GZIP on ]