Chat about current Lua tools and IDEs

User avatar
By ThomasW
#5074
ok1cdj wrote:Hello, any idea how to transfer binary file to filesystem ??

Regards, Ondra


Hi,
If you're in a hurry and are adventurous you can try my experimental tftp-server (attached). It's not
cleaned up and a *very* basic implementation but worked for me so far...

Code: Select all-- Start:
tftpd=loadfile("tftpd.lua")():start()
-- Stop:
tftpd:stop() tftpd=nil

Usage Linux:
Code: Select all$ tftp 10.10.1.125
tftp> mode binary
tftp> put mybinary.dat
Sent 6263 bytes in 5.5 seconds
tftp>

Usage Windows:
Code: Select alltftp -i 10.10.1.125 put myfile.dat

You have to enable the tftp-client in Windows >=7 first:
To enable them, open Control Panel > Programs and Features > click Turn Windows features On or Off in left side > enable Client Telnet and Client TFTP then click in OK.


Good Luck ;)
Thomas

Edit: couldn't attach the file as .lua so it's .txt now...
Attachments
(2.02 KiB) Downloaded 743 times