Jump to content
  • Sky
  • Blueberry
  • Slate
  • Blackcurrant
  • Watermelon
  • Strawberry
  • Orange
  • Banana
  • Apple
  • Emerald
  • Chocolate
  • Charcoal
Gangsir

GFT | Simple Intra-network file transfer

Recommended Posts

!ereh Risgang I've written a simple program for transferring a medium sized text file (Less than about 8000 characters, roughly a small essay) over an OC network, wired or wirelessly. I've named it GFT, or "Gift", short for Gangsir File Transfer.

 

This program is actually two small sub-programs, one for receiving and one for sending. To differentiate between them, the first argument changes the function of the program. Then, the second argument tells the file to operate on, for sending or receiving to. (To generate on receive.)

 

Syntax is as follows:

gft <send/receive> <"/path/to/file.txt">

This program copies the file being sent, so don't worry about losing the original copy. And yes, this program is small enough to send itself. (Don't know why you would, since you need this program on the receiving end anyway.) I wouldn't recommend using gft to send the file that gft is running off of, since I have not tested what happens.

 

Uses port 20 by default, the default port for FTP in real life.

 

Requirements for program:

 

-Tier 1 everything

-Network card

-Connection between sender and receiver, if wired

 

 

 

How to get the program:

 

The program can be found at my github like always:

 

https://github.com/NoahNMorton/Gangsir_MC_LuaPrograms/blob/master/OpenComputers/GangsirsSimpleFileTransfer.lua

 

Or can be wgetted with an internet card:

wget https://raw.githubusercontent.com/NoahNMorton/Gangsir_MC_LuaPrograms/master/OpenComputers/GangsirsSimpleFileTransfer.lua gft.lua

Thanks for reading, and as always, let me know if you have any feedback.

Link to post
Share on other sites

I hate to say it, but I am having some trouble making this work this is the error I'm getting:

boot/04_component.lua:69: no primary 'modem' available
stack traceback:
        [C]: in function 'assert'
        boot/04_component.lua:69: in function <boot/04_component.lua:67>
        (...tail calls ...)
        /usr/bin/gft.lua:14: in main chunk
        (... tail calls ...)
Link to post
Share on other sites

 

I hate to say it, but I am having some trouble making this work this is the error I'm getting:

boot/04_component.lua:69: no primary 'modem' available
stack traceback:
        [C]: in function 'assert'
        boot/04_component.lua:69: in function <boot/04_component.lua:67>
        (...tail calls ...)
        /usr/bin/gft.lua:14: in main chunk
        (... tail calls ...)

 

Do you have a wireless or wired network card installed in both computers? Ensure you do.

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.