Gangsir 14 Posted January 15, 2016 Share Posted January 15, 2016 !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. Quote Link to post Share on other sites
jhagrid77 4 Posted January 16, 2016 Share Posted January 16, 2016 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 ...) Quote Link to post Share on other sites
Gangsir 14 Posted January 16, 2016 Author Share Posted January 16, 2016 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. Quote Link to post Share on other sites
jhagrid77 4 Posted January 16, 2016 Share Posted January 16, 2016 Shhhh. Lol, thanks, my brain went stupid and didn't read the requirements. Quote Link to post Share on other sites
ivskran 0 Posted December 15, 2016 Share Posted December 15, 2016 Ain't this a nice little program! Can I use this with linked cards too? Also, I am trying to make an FTP server, can I fire up the program and keep it listening for files till I shut it down? Thanks! Quote Link to post Share on other sites