macOS: tftp: illegal option -- i usage: tftp [-e] host-name [port]


tftp -i put openwrt-19.07.7-ipq806x-generic-netgear_r7800-squashfs-factory.img 
tftp: illegal option -- i
usage: tftp [-e] host-name [port]

correct is

tftp -e put openwrt-19.07.7-ipq806x-generic-netgear_r7800-squashfs-factory.img

from man:

     tftp [-e] [host] [port]

     The tftp utility is the user interface to the Internet TFTP (Trivial File Transfer Pro-
     tocol), which allows users to transfer files to and from a remote machine.  The remote
     host (and optional port) may be specified on the command line, in which case tftp uses
     host (and port) as the default for future transfers (see the connect command below).

     The optional -e argument sets a binary transfer mode as well as setting the extended
     options as if tout, tsize, and blksize 65464, had been given.


I use:
echo "put openwrt-19.07.7-ipq806x-generic-netgear_r7800-squashfs-factory.img" | tftp -e

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.