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

hello

tftp -i 192.168.1.1 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 192.168.1.1 put openwrt-19.07.7-ipq806x-generic-netgear_r7800-squashfs-factory.img

from man:

SYNOPSIS
     tftp [-e] [host] [port]

DESCRIPTION
     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.

correct?

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

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